Microsoft KB Archive/321490

= PRB: Access Violation in Wininet.dll =

Article ID: 321490

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Internet Explorer 6.0
 * Microsoft Internet Explorer 6.0
 * Microsoft Internet Explorer 6.0
 * Microsoft Internet Explorer 6.0

-



This article was previously published under Q321490



SYMPTOMS
If you use the InternetQueryDataAvailable function and the InternetCloseHandle function asynchronously in different threads, you can cause an access violation.



CAUSE
If you call InternetCloseHandle, this causes Wininet to release the handle object, which may later be accessed by InternetQueryDataAvailable on a different thread.



RESOLUTION
To avoid a possible access violation, you must call InternetCloseHandle and InternetQueryDataAvailable on the same thread.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
The access violation does not occur when Wininet is used synchronously.

