BUG: InternetOpenUrl Does Not Work When Called Asynchronously

Last reviewed: November 5, 1997
Article ID: Q176176
The information in this article applies to:
  • Internet Client SDK, 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

As temporary workaround 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. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

(c) Microsoft Corporation 1997, All Rights Reserved. Contributions by Leon Braginski, Microsoft Corporation

Technology        : kbInetDev
Version           : WINDOWS:4.0
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.