FIX: WebBrowser.Navigate Crashes with navNoHistory

Last reviewed: September 30, 1997
Article ID: Q168215
The information in this article applies to:
  • Microsoft Internet Explorer (Programming), versions 3.0, 3.01, 3.02

SYMPTOMS

When the Navigate method of the WebBrowser control is called with the navNoHistory flag, the container crashes.

RESOLUTION

To avoid the crash call one of the other navigate methods prior to calling Navigate with the navNoHistory flag. For example, the following code could be added to the OnLoad event of the form in which the WebBrowser control is embedded:

   WebBrowser1.GoHome

While this does put an element on the WebBrowser's internal navigation stack, the crash is avoided.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Internet Explorer 4.0.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Launch Visual Basic 4 or Visual Basic 5.

  2. Add the WebBrowser control as a component.

  3. Draw the WebBrowser control onto the form.

  4. Add a button to the form.

  5. To the Button's click event handler add the following code:

          WebBrowser1.Navigate "http://example.microsoft.com", navNoHistory
    

  6. Run the form.

  7. Click the button.
Keywords          : AXSDKIEAutomation AXSDKWebBrowser kbbuglist
Technology        : kbInetDev
Version           : 3.0 3.01 3.02
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbfix


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


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: September 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.