PRB: Access Violation in Wininet.dll (321490)



The information in this article applies to:

  • Microsoft Internet Explorer version 6 for Windows XP
  • Microsoft Internet Explorer version 6 for Windows 2000
  • Microsoft Internet Explorer version 6 for Windows NT 4.0
  • Microsoft Internet Explorer version 6 for Windows 98 Second Edition

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.

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

224318 HOWTO: Control Connection Timeout Value by Creating Second Thread


Modification Type:MajorLast Reviewed:12/1/2003
Keywords:kbprb KB321490