什么是 C/C++ 程序及其插件 DLL 的最佳空闲内存泄漏检测器?
我有一个 .exe 和许多 .exe 加载的插件 .dll 模块.(我有两者的源代码.)跨平台(带源代码)解决方案是理想的,但平台可以缩小到 WinXP 和 Visual Studio(在我的情况下为 7.1/2003).
I have a .exe and many plug-in .dll modules that the .exe loads. (I have source for both.) A cross-platform (with source) solution would be ideal, but the platform can be narrowed to WinXP and Visual Studio (7.1/2003 in my case).
内置的 VS 泄漏检测器仅提供调用 new/malloc 的行,但我有一个用于分配的包装器,因此最好使用完整的符号堆栈跟踪.
The built-in VS leak detector only gives the line where new/malloc was called from, but I have a wrapper for allocations, so a full symbolic stack trace would be best.
检测器还能够检测 .exe 及其附带的插件 .dll 模块中的泄漏.
The detector would also be able to detect for a leak in both the .exe and its accompanying plug-in .dll modules.
推荐答案
我个人使用 Visual Leak Detector,不过当大块泄漏时,它会导致很大的延迟(它显示整个泄漏块的内容).
I personally use Visual Leak Detector, though it can cause large delays when large blocks are leaked (it displays the contents of the entire leaked block).
相关文章