【发布时间】:2011-12-03 19:51:19
【问题描述】:
在the documentation of the IDocHostUIHandler Interface 中,当谈到使用 BHO 的 ICustomDoc 导致的内存泄漏时,有一段关于 IE 提供的默认 UI 处理程序:
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).
如何获取主机接口才能释放呢?
【问题讨论】:
-
你是如何解决第二个问题的?
标签: internet-explorer com bho mshtml