Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A memory leak occurs when an MSHTML instance is hosted by a WebBrowser control or by Internet Explorer


View products that this article applies to.

Summary

You have an instance of the Microsoft HTML parsing and rendering engine (MSHTML) that is hosted by Microsoft Internet Explorer or by a WebBrowser control. When you use the ICustomDoc::SetUIHandler method to set the IDocHostUIHandler interface for the MSHTML instance, a memory leak occurs.

↑ Back to the top


More information

The ICustomDoc interface is designed for applications that host MSHTML directly. It is not intended to replace an existing IDocHostUIHandler object that is provided by the true MSHTML host. Either Internet Explorer or a WebBrowser control will host MSHTML and will provide their own implementation of the IDocHostUIHandler interface. If you try to replace that interface by using the ICustomDoc interface, you may experience unexpected behavior.

Applications that directly host the WebBrowser control or MSHTML can provide an IDocHostUIHandler interface by using the method that is described on the following Microsoft Developer Network (MSDN) Web site:

↑ Back to the top


Keywords: KB893629, kbprb, kbbug

↑ Back to the top

Article Info
Article ID : 893629
Revision : 3
Created on : 11/16/2007
Published on : 11/16/2007
Exists online : False
Views : 528