内存泄露调试工具visualleakdetector使用方法
2014-08-25 11:48
507 查看
转自:http://blog.csdn.net/tangaowen/article/details/5794580
原文参考:http://kangzj.net/visual-leak-detector-download/
另外一种检查内存泄露的工具:visualleakdetector简称vld
1.首先要去下载vld并且安装,一个下载地址:http://www.brothersoft.com/visual-leak-detector-download-288113.html
2.安装vld,我的安装目录为:
D:/ProgramFiles/VisualLeakDetector
3.在VS里面的工具--选项--项目和解决方案--vc++目录中添加相应的include和lib路径。
我添加的路径如下:
D:/ProgramFiles/VisualLeakDetector/include添加到包含文件选项。
D:/ProgramFiles/VisualLeakDetector/lib/Win32添加到库文件选项。
4.在stdafx.h中增加:
#include"vld.h"
5.把D:/ProgramFiles/VisualLeakDetector/bin/Win32下面的两个DLL
即dbghelp.dll和vld.dll拷贝到要调试的exe的目录,即Debug目录下。
6.调试启动,就可以在输出的窗口中发现内存泄露的同时,定位到是哪行代码出现问题啦。
原文参考:http://kangzj.net/visual-leak-detector-download/
另外一种检查内存泄露的工具:visualleakdetector简称vld
1.首先要去下载vld并且安装,一个下载地址:http://www.brothersoft.com/visual-leak-detector-download-288113.html
2.安装vld,我的安装目录为:
D:/ProgramFiles/VisualLeakDetector
3.在VS里面的工具--选项--项目和解决方案--vc++目录中添加相应的include和lib路径。
我添加的路径如下:
D:/ProgramFiles/VisualLeakDetector/include添加到包含文件选项。
D:/ProgramFiles/VisualLeakDetector/lib/Win32添加到库文件选项。
4.在stdafx.h中增加:
#include"vld.h"
5.把D:/ProgramFiles/VisualLeakDetector/bin/Win32下面的两个DLL
即dbghelp.dll和vld.dll拷贝到要调试的exe的目录,即Debug目录下。
6.调试启动,就可以在输出的窗口中发现内存泄露的同时,定位到是哪行代码出现问题啦。
相关文章推荐
- VLD(Visual LeakDetector)内存泄露工具的使用
- 使用Visual Leak Detector for Visual C++ 捕捉内存泄露---Visual C++内存泄露检测—VLD工具使用说明
- C++内存泄露检测工具Visual Leak Detector的使用
- VLD(Visual LeakDetector)内存泄露工具的使用
- VLD(Visual LeakDetector)内存泄露工具的使用
- C内存泄露检查工具:Visual Leak Detector使用
- 内存泄露调试之 visual leak detector 工具【转】
- vc调试时使用vld(visual leak detector)出错的解决方法
- 使用Visual Leak Detector检测内存泄露
- 介绍一个c++检测内存泄露工具:Visual Leak Detector
- 内存泄露检测工具 -- Visual Leak Detector
- vc6.0内存泄露之检测工具Visual Leak Detector
- VLD(Visual LeakDetector)内存泄露库的使用
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- vld(Visual Leak Detector 内存泄露检测工具
- *vc中检测内存泄露的工具VLD(visual leak detector) 转
- VS2012 + VLD(Visual LeakDetector)内存泄露库的使用
- 使用visual leak detector(vld)查找内存泄露
- (搬运工)内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- 使用Visual Leak Detector for Visual C++ 捕捉内存泄露