PRB: WebBrowser Problems When Refreshing in TitleChange Handler (179229)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 3.02
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft ActiveX SDK
- Microsoft Internet Client SDK 4.0
- Microsoft Internet Client SDK 4.01
This article was previously published under Q179229 SYMPTOMS
When an application using the WebBrowser control makes a call to the
Refresh method of the WebBrowser control in an event handler for the
TitleChange event, various problems occur.
Internet Explorer 3.02 crashes with an access violation. In the other
versions of Internet Explorer mentioned at the beginning of this article,
an infinite loop occurs and the browser hangs.
CAUSE
In Internet Explorer 4.x this behavior is by design. Calling Refresh from
within a TitleChange event handler causes the WebBrowser control to fire a
TitleChange event. This infinite loop occurs if you call Refresh in
handlers for many of the WebBrowser events.
RESOLUTION
Do not call Refresh within the TitleChange event handler for the WebBrowser.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 8/18/2005 |
---|
Keywords: | kbprb KB179229 |
---|
|