Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Consecutive Posts
jdalrymple

From: Snoqualmie, WA USA
Posts: 20
Member Since: 11/14/00
posted March 15, 2001 7:11 PM

Is there something I need to do differently when running two procedures (Access 2000 VBA Project) consecutively that instantiate an Http object? Each one instantiates an Http object and performs a POST and then sets the Http object = Nothing at the end of the procedure.

The problem is that the data returned from the POST is complete sometimes and incomplete othertimes. When I don't run the first procedure, the second procedure works fine consistently.

What am I doing wrong? Thanks for the help.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 15, 2001 7:25 PM



Is there some way you can modify the VB Post sample to duplicate what you are describing? If so, please do so and send the modified project to support@dart.com.

Thanks,

Tony Priest
Dart Tech Support
User707

Posts: 2
Member Since: 05/10/01
posted May 10, 2001 10:56 AM

I see the same behavior as Mr. Dalrymple.

In my VC++ app I'm doing consecutive posts. The 2nd post always fails if I run the 1st one. However, if I run the 2nd by itself it is always successful.

The POSTs are using the same DartString variables for the ResponseHeaders and RequestHeaders. I am also using the same COleVariant content and data strings.

Also, after using the 1st Post, when I try to clear the ResponseHeaders, I often get a mishandled exception.

e.g.
IDartStringsPtr m_oResponseHeader;
COleVariant m_ovData, m_ovContent;
... (create some data)
pHttp->Post(m_ovData, , m_ovContent, m_oResponseHeader)

m_oResponseHeader->Clear() // <--- error

I suspect I'm doing something wrong with the DartString variables. Can you give me a direction in which to proceed or provide some advice?


Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX