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.
相关文章