Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FoxPro and winHTTP5.1

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
0
0
US
I read under the Microsoft winHTTP5.1 general guidelines the following.
Caution WinHTTP is not re-entrant except during asynchronous completion callback! This means that while a thread has a call pending to one of the WinHTTP functions such as WinHttpSendRequest, WinHttoReceiveResponse, WinHttpQueryDataAvailable, WinHttpSendData, or WinHttpWriteData, it must never call WinHTTP a second time until the first call has completed. One scenario under which a second call could occur is as follows: If an application queues an Asynchronous Procedure Call (APC) to the thread that's calling into WinHTTP, and if WinHTTP performs an alertable wait internally, the APC will get a chance to run. Now if the APC routine happens also to call WinHTTP, it re-enters the WinHTTP API, and the internal state of WinHTTP can be corrupted.
Does this mean that the internal state of winHTTP will be corrupted permanently ? Is there a way to back up the .dll and restore it if there is a problem ?

Thanks.

ToddWW
 
Does this mean that the internal state of winHTTP will be corrupted permanently ?

No

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top