Visual C++ - Memory Leak Detection(Visual C++ - 内存泄漏检测)
问题描述
有什么建议吗?这篇 SO 帖子讨论了 Visual Leak Detector,但我正在寻找其他工具.另外,请不要推荐这个.
Any suggestions? This SO post talks about Visual Leak Detector, but I'm looking for other tools. Also, please don't recommend this.
推荐答案
我用过 Visual Leak Detector最近,它工作得很好.构建它非常简单(只需包含 vld.h)并且不需要任何工具.我发现我需要编写几个脚本才能将输出解析为对我的目的更有用的东西(它迫切需要一个像样的 GUI).请注意新网站——该项目正在 Codeplex 上积极维护——Codeproject 链接很旧.
I've used Visual Leak Detector quite recently and it works pretty well. It's very simple to build it in (just include vld.h) and doesn't require any instrumentation. I found that I needed to write a couple of scripts though to parse the output into something more useful for my purposes (it is crying out for a decent GUI). Note the new website -- the project is being actively maintained on Codeplex -- the Codeproject link is very old.
这篇关于Visual C++ - 内存泄漏检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual C++ - 内存泄漏检测
基础教程推荐
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- CString 到 char* 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
