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 的最佳空闲内存泄漏检测器?
基础教程推荐
- 如何在 C++ 中正确使用命名空间? 2022-01-01
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 提升 ASIO 流缓冲 2021-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
- c++ STL设置差异 2022-01-01
