Article ID: 922952
Article Last Modified on 5/21/2007
APPLIES TO
- Microsoft Windows CE 5.0
SYMPTOMS
Consider the following scenario:
- You view a Web page in Microsoft Internet Explorer on a Windows CE 5.0-based device.
- The Web page contains a frame that automatically loads and refreshes a Web page.
- The Web page that is loaded in the frame contains script code that dynamically allocates event handlers.
In this scenario, a memory leak may occur. Additionally, you may receive one of the following error messages:
Error message 1
Error message 2
Note This problem is more likely to occur if Internet Explorer remains open for an extended time.
CAUSE
Web pages can allocate event handlers dynamically. The dynamic allocations are disconnected from the object whenever the Web page is refreshed. Therefore, the dynamic allocations remain in memory until Internet Explorer is closed. This behavior causes a memory leak.
WORKAROUND
To work around this problem, you can release all dynamically allocated event handlers in the onunload event for the Web page. For more information about the onunload event, visit the following Microsoft Developer Network (MSDN) Web site:
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Keywords: kbtshoot kbbug KB922952