开发者

What debugger can check c++ code for memory leaks? [duplicate]

This question already has answers here: Closed 11 years ago.

Pos开发者_Go百科sible Duplicate:

how to find memory leak in c++ code/project

I would like to ask what debugger should I install in order to check for memory leaks? I have an .a that contains a .cpp and an .h . I used a lot of pointers and references. Now I would like to test for memory leaks.

I heard about lint. Does this exist? THX


You need memory debugging, memory leak detection, and profiling tool like Valgrind.
Debuggers don't usually do that.


It is called Memory leak. You can use valgrind (linux only) for memory leaks and invalid read/write.

You can also use splint, which is static code analysis tool. But it is used to find another class of errors in the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜