Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在打开转储、分析它然后“停止调试”后复制由 windbg 完成的清理。
当我尝试在自己的程序中执行此操作时,会泄漏大量内存。我释放了我已经 addref:ed 的 com 接口并调用了 SymCleanup,但这不会取消映射加载的图像或释放 dbgeng 分配的内存。
DDK 中提供的示例在这里似乎没有提供更多信息。这里有什么秘方吗?
我想要的是一个演示打开和关闭转储文件的示例,包括加载相应的图像和符号,而不会泄漏资源。
IDebugClient::EndSession(DEBUG_END_PASSIVE) as @blabb suggested solved the problem.