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 的最佳空闲内存泄漏检测器?


基础教程推荐
- CString 到 char* 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01