内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
2012-10-17 18:13
603 查看
工程目录路径不能包含中文名、Microsoft.DTfW.DHL.manifest必须要
http://blog.csdn.net/xinyaping/article/details/6751940
/article/7856313.html
分类: 编程工具2011-04-18
10:32 1378人阅读 评论(3) 收藏 举报
Visual Leak Detector是一款免费的检查内存泄露的工具。最新的2.2.3版本可以很好的支持VS2008/2010。
点击 http://visualstudiogallery.msdn.microsoft.com/7c40a5d8-dd35-4019-a2af-cb1403f5939c
http://vld.codeplex.com/releases/view/82311这里下载
安装后,
1、在VS中设置Tool->Options 选择Projects and Solutions中的VC++ Directories ->在Include Files和Library Files下(右上角:显示以下内容的目录下),将Visual Leak Detector安装路径中的include(C:\Program Files\Visual
Leak Detector\include)和lib(C:\Program Files\Visual Leak Detector\lib\Win32)路径分别添加进去;
2、将安装路径(C:\Program Files\Visual Leak Detector\bin\Win32)下bin里的相应dll(vld_x86.dll、dbghelp.dll、Microsoft.DTfW.DHL.manifest)拷贝至debug目录下。
创建一个简单的工程,其中指针b所指向的内存没有被正确地释放。
[cpp] view
plaincopy
void leak()
{
int *b = new int[10];
for (int i = 0; i < 10; ++i)
{
b[i] = i;
}
}
int main()
{
leak();
return 0;
}
#include <vld.h>,运行就能在output窗口看到效果啦,放在stdafx.h后,其他之前
输出的部分主要分为两块
Call Stack部分:
是泄露内存的调用堆栈,其中显示了泄露资源创建的位置,双击便可以定位到相应的代码部分。
Data部分:
即使泄露部分的内存内容。
------程序关闭,在输出中看到内存有无泄漏信息
http://blog.csdn.net/xinyaping/article/details/6751940
/article/7856313.html
内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
分类: 编程工具2011-04-1810:32 1378人阅读 评论(3) 收藏 举报
Visual Leak Detector是一款免费的检查内存泄露的工具。最新的2.2.3版本可以很好的支持VS2008/2010。
点击 http://visualstudiogallery.msdn.microsoft.com/7c40a5d8-dd35-4019-a2af-cb1403f5939c
http://vld.codeplex.com/releases/view/82311这里下载
安装后,
1、在VS中设置Tool->Options 选择Projects and Solutions中的VC++ Directories ->在Include Files和Library Files下(右上角:显示以下内容的目录下),将Visual Leak Detector安装路径中的include(C:\Program Files\Visual
Leak Detector\include)和lib(C:\Program Files\Visual Leak Detector\lib\Win32)路径分别添加进去;
2、将安装路径(C:\Program Files\Visual Leak Detector\bin\Win32)下bin里的相应dll(vld_x86.dll、dbghelp.dll、Microsoft.DTfW.DHL.manifest)拷贝至debug目录下。
创建一个简单的工程,其中指针b所指向的内存没有被正确地释放。
[cpp] view
plaincopy
void leak()
{
int *b = new int[10];
for (int i = 0; i < 10; ++i)
{
b[i] = i;
}
}
int main()
{
leak();
return 0;
}
#include <vld.h>,运行就能在output窗口看到效果啦,放在stdafx.h后,其他之前
输出的部分主要分为两块
Call Stack部分:
是泄露内存的调用堆栈,其中显示了泄露资源创建的位置,双击便可以定位到相应的代码部分。
Data部分:
即使泄露部分的内存内容。
------程序关闭,在输出中看到内存有无泄漏信息
相关文章推荐
- (搬运工)内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- 使用Visual Leak Detector for Visual C++ 捕捉内存泄露---Visual C++内存泄露检测—VLD工具使用说明
- 内存泄露检测工具 Visual Leak Detector for Visual C++ 2008/2010
- C++内存泄露检测工具Visual Leak Detector的使用
- 介绍一个c++检测内存泄露工具:Visual Leak Detector
- vld(Visual Leak Detector) 内存泄露检测工具
- C/C++ 内存泄露检测 Visual Leak Detector 检测定位内存泄露 对malloc和new均适用
- *vc中检测内存泄露的工具VLD(visual leak detector) 转
- 内存泄露检测工具 -- Visual Leak Detector
- vld(Visual Leak Detector 内存泄露检测工具
- vc中检测内存泄露的工具VLD(visual leak detector)
- Visual Leak Detector for Visual C++ 2008/2010/2012
- 初识内存泄露检测工具VisualLeakDetector
- Visual Leak Detector for Visual C++ 2008/2010/2012
- 使用Visual Leak Detector for Visual C++ 捕捉内存泄露
- 内存泄露检测工具Using Visual Leak Detector
- 内存泄露检测工具 Visual Leak Detector
- vc中检测内存泄露的工具VLD(visual leak detector) 转