内存泄露检测工具 Visual Leak Detector
2013-09-13 18:48
525 查看
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窗口输出了内存泄露的信息:
版本问题
设置变化
版本问题:
在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 for Visual C++ 2008/2010
- vld(Visual Leak Detector) 内存泄露检测工具
- vc中检测内存泄露的工具VLD(visual leak detector)
- 内存泄露检测工具Using Visual Leak Detector
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- *vc中检测内存泄露的工具VLD(visual leak detector) 转
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- vld(Visual Leak Detector 内存泄露检测工具
- 内存泄露检测工具 -- Visual Leak Detector
- vld(Visual Leak Detector) 内存泄露检测工具
- C++内存泄露检测工具Visual Leak Detector的使用
- vc6.0内存泄露之检测工具Visual Leak Detector
- 初识内存泄露检测工具VisualLeakDetector
- vc中检测内存泄露的工具VLD(visual leak detector) 转
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- 介绍一个c++检测内存泄露工具:Visual Leak Detector
- *vc中检测内存泄露的工具VLD(visual leak detector) 转
- 使用Visual Leak Detector for Visual C++ 捕捉内存泄露---Visual C++内存泄露检测—VLD工具使用说明
- vld(Visual Leak Detector 内存泄露检测工具