BUG: Application Error When You Use DoEvents in WebBrowser ProgressChange Event (281118)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q281118 SYMPTOMS
When you use the DoEvents function in a WebBrowser control ProgressChange event, you may receive the following application error:
The instruction at "address" referenced memory at "address". The memory could not be read.
Click on OK to terminate the application
Click on CANCEL to debug the application
RESOLUTION
There are two ways to work around this problem:
- Use a Timer to yield to the processor.
- Delegate the task to an ActiveX EXE component.
If you delegate the task to an ActiveX EXE component, the task can continue completely independent of your application, and the operating system takes care of multitasking and time slicing.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
| Modification Type: | Major | Last Reviewed: | 5/11/2006 |
|---|
| Keywords: | kbBug kbnofix kbWebBrowser KB281118 |
|---|
|