是否有免费软件实用程序来监视c ++应用程序的内存泄漏?

nan*_*nay 3 c++ memory memory-leaks

我正在验证用c ++编写的带有内存泄漏的应用程序,并且需要一个实用程序(免费软件),我可以轻松地运行以检测它在哪里发生.有任何想法吗?

Jac*_*cob 6

在以下平台上,

x86/Linux: support is mature and almost complete.
AMD64/Linux: support is mature and almost complete.
PPC32/Linux: support is new but fairly complete.
PPC64/Linux: support is new but fairly complete.
x86/Darwin (Mac OS X): support is new.
AMD64/Darwin (Mac OS X): not officially supported, but probably works.
Run Code Online (Sandbox Code Playgroud)

我推荐Valgrind

如果您使用的是Visual Studio,则此链接包含一些信息.

如果你使用的是Windows,而不是Visual Studio,那么这个SO页面有很多建议 - 然后这个问题应该关闭:)