FIX: WebBrowser.Navigate Crashes with navNoHistory

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.


Additional query words:

Keywords : AXSDKIEAutomation AXSDKWebBrowser
Version : WINDOWS:3.0,3.01,3.02
Platform : WINDOWS
Issue type : kbbug


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