在the documentation of the IDocHostUIHandler Interface,有一个关于谈论内存泄漏从BHO因使用ICustomDoc当IE浏览器提供的默认用户界面处理的段落:如何获取Internet Explorer提供的原始IDocHostUIHandler?
To avoid a memory leak:
1. Always forward the IDocHostUIHandler::ShowUI and
IDocHostUIHandler::HideUI methods to the original handler.
2. Release the pointer to the original UI handler when your object is called
with IObjectWithSite::SetSite(NULL).
如何获得主机接口,以便释放呢?
你是如何解决第二期可用的代码? – walter