Help and Support

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

Article ID:893629
Last Review:November 16, 2007
Revision:1.2

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.

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:
http://msdn2.microsoft.com/en-us/library/Aa753260.aspx (http://msdn2.microsoft.com/en-us/library/Aa753260.aspx)

APPLIES TO
Microsoft Internet Explorer 6.0
Microsoft Internet Explorer 6.0 Service Pack 1

Back to the top

Keywords: 
kbbug kbprb KB893629

Article Translations

 

Related Support Centers

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.