What is the best free memory leak detector for a C/C++ program and its plug-in DLLs?(什么是 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).
这篇关于什么是 C/C++ 程序及其插件 DLL 的最佳空闲内存泄漏检测器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:什么是 C/C++ 程序及其插件 DLL 的最佳空闲内存泄漏检测器?


基础教程推荐
- 这个宏可以转换成函数吗? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07