FIX: InternetOpenUrl Does Not Work When Called Asynchronously

ID: Q176176


The information in this article applies to:
  • Microsoft Internet Explorer (Programming) version 4.0


SYMPTOMS

When InternetOpenUrl is called asynchronously, the callback function may still report error 997 (ERROR_IO_PENDING) even on the INTERNET_STATUS_REQUEST_COMPLETE notification.

Note that the same code works in Internet Explorer 3.02


CAUSE

The above behavior takes place when all the following conditions occur:

  1. A direct connection to the Internet is used (no proxy is configured in Internet Explorer).


  2. InternetOpen is called with the INTERNET_OPEN_TYPE_PRECONFIG option.


  3. InternetOpenUrl is called asynchronously.



RESOLUTION

Installing Internet Explorer 4.01 will resolve the problem.

As temporary workaround for Internet Explorer 4.0, you can configure proxy in Internet Explorer and use INTERNET_OPEN_TYPE_PRECONFIG access type, but configure Internet Explorer to use a nonexistent proxy name. To make sure that this proxy does not interfere with WinInet operations, check "Bypass proxy server for (intranet) address" in the Connection tab of Internet Options in Internet Explorer 4.0.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was fixed in the WinInet.dll included with Internet Explorer 4.01.

© Microsoft Corporation 1997, All Rights Reserved.
Contributions by Leon Braginski, Microsoft Corporation

Additional query words:

Keywords : kbIE400
Version : WINDOWS:4.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: August 27, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.