http://blog.csdn.net/xinyaping/article/details/6751940
Visual Leak Detector是过去(Visual Studio 2008的时代)我们常用的C/C++内存泄露检查工具。在Visual Studio 2010中依然可以使用该工具,但有两点需注意:
- 版本问题
- 设置变化
版本问题:
在codeproject.com上面提供的最新版本依然是1.9d
,
但是请注意,该版本在Visual Studio
2010下面表现非常差。网上有很多人注意到了这一点,很多人推荐用1.0版,因为1.0版在Visual Studio
2010下工作良好。但是,实际上没有必要这么做,因为1.0版确实没有后续版本方便,而且实际上Visual
Leak Detector已经更新到2.2版了,2.2版修正了许多bug,而且在Visual Studio 2010下工作良好。
Codeplex.com上面有Visual Leak Detector的最新的2.2版。链接:http://vld.codeplex.com/
设置变化
:
我们熟知的那个VC++ Directories的设置,如今变了个位置。
新的设置方法见上一篇博客《Visual Studio 2010中VC++ Directories的设置
》。
设置过程:
1. View | Other Window | Property Manager
2. Go to "VC++ Directories" settings
3. Set include folder path
4. Set lib folder path
点OK,我们就设置好了。
检验:
如下图,我们故意制造一个memory leak,然后debug + run,程序运行完毕后在Visual Studio 2010的Output窗口输出了内存泄露的信息:
分享到:
相关推荐
Visual Leak Detector的使用简介,希望对大家有所帮助
Visual Leak Detector for Visual C++ 软件和示例
Visual Leak Detector 内存泄漏检测 源码 + 安装 + 使用
Visual Leak Detector.zip Visual Leak Detector for Visual C++ 2008/2010/2012/2013 http://vld.codeplex.com/downloads/get/824280
Visual Leak Detector,防止C++内存泄露的工具,解压后将.h文件拷贝到VC的默认include目录下,将.lib文件拷贝到VC默认的lib目录下。 使用方法:只要在包含入口函数(比如main()函数)的.cpp中包含vld.h就可以了...
VLD 内存泄露检测工具 Visual Leak Detector 2.3.0
可见,从使用角度来讲,Visual Leak Detector简单易用,对于使用者自己的代码,唯一的修改是#include Visual Leak Detector的头文件后正常运行自己的程序,就可以发现内存问题。从研究的角度来讲,如果深入Visual ...
可见,从使用角度来讲,Visual Leak Detector简单易用,对于使用者自己的代码,唯一的修改是#include Visual Leak Detector的头文件后正常运行自己的程序,就可以发现内存问题。从研究的角度来讲,如果深入Visual ...
微软提供Visual Studio开发工具本身没有什么太好的内存泄漏检测功能,我们可以使用第三方工具Visual Leak Detector(以下简称vld)。 vld工具是VC++环境下一款小巧易用、免费开源的内存泄漏检测工具,vld可以显示...
最新版的内存泄露检测工具,vs2010 vs2012都支持的很好
Visual Leak Detector 内存泄露检测,包括文档,源代码。
不知道 Visual Leak Detector干什么用的就不要下了~~
使用Visual Leak Detector(1.0)--检测内存泄漏.zip
Visual Leak Detector fot Visual C++
非常好用的内存泄露检测工具,安装文件仅1M大小,源代码开放,visual leak detector
visual leak detector 2.2 VS2010 VS2008检测内存泄露
开源的内存泄漏检测工具。支持VS2008.只需要包含头文件就能检测程序中的内存泄漏。由于作者网站被和谐,所以上传一个。 使用方法: http://blog.csdn.net/BeRoy/archive/2009/04/24/4111571.aspx
一款实用的堆内存泄露检测工具,简单易用。支持visual stdio 2008/2010 c++,并支持64位。
Visual Leak Detector 2.3 for Visual C++ 2008/2010/2012