标签:visual leak detector memory leak 内存泄露
Visual Leak Detector is a free, robust, open-source memory leak detection system for Visual C++.
It‘s pretty easy to use. After installing it, you just need to tell Visual C++ where to find the included header and library file.
Then it can be used with any C/C++ project simply by adding the following line to your code:
#include <vld.h>
When you run your program under the Visual Studio debugger, Visual Leak Detector will output a memory leak report at the end of your debugging session. The leak report includes the full call stack showing how any leaked memory blocks were allocated. Double-click
on a line in the call stack to jump to that file and line in the editor window.
It‘s a very effective way to quickly diagnose, and fix, memory leaks in C/C++ applications.
The main difference between the CRT Debug Library and VLD, is that Visual Leak Detector shows you the complete callstack used for memory allocation has led to the leak.
For example:
YES,it‘s so easy,what we need to do is just include <vld.h>,then the information of
memory leaking will be shown on the screen.
此工具0积分下载地址: visual leak detector
vs2008内存泄露检测得到完美解决,布布扣,bubuko.com
标签:visual leak detector memory leak 内存泄露
原文地址:http://blog.csdn.net/iaccepted/article/details/27646679