vld(Visual Leak Detector) 内存泄露检测工具,Visual C++ 2008
原文: https://vld.codeplex.com/
Visual Leak Detector 是一款专用于Visual C++的内存泄漏检测工具,它免费,开源,且鲁棒性高。
VLD很容易使用:
1. 安装完vld后,只要告诉Visual C++哪里去找到它的头文件和库。(下载地址:https://vld.codeplex.com)
2. 然后您只要在你的c/c++工程中加上下面这一行代码,就可以使用vld了:
#include <vld.h>
您的工程在Visual Studio debug模式下运行,运行结束后,Visual Leak Detector会将内存泄漏的报告打印出来。内存泄漏报告包含完整的调用堆栈,没释放的内存大小。双击其中的调用行,可以跳转到对应的代码行上。
这种方式能够高效得帮您快速诊断,修复内存泄漏问题。
CRT Debug库和VLD主要的不同之处在于:Visual Leak Detector 完整的展示了内存泄漏的调用堆栈。
下面就是一个VLD打印的内存泄漏报告例子:
---------- Block 1199 at 0x04BE1058: 136 bytes ---------- Call Stack: d:FoobarFooLog.cpp (26): FooLog::getInstance d:FoobarFooMain.cpp (75): FooMain::init f:ddvctoolscrt_bldself_x86crtsrccrtexe.c (578): __tmainCRTStartup f:ddvctoolscrt_bldself_x86crtsrccrtexe.c (403): WinMainCRTStartup 0x759A3677 (File and line number not available): BaseThreadInitThunk 0x770C9D42 (File and line number not available): RtlInitializeExceptionChain 0x770C9D15 (File and line number not available): RtlInitializeExceptionChain Data: 9C 33 2D 6B 74 2A 2D 6B C8 11 BE 04 00 00 00 00 .3-kt*-k ........ 00 00 00 00 70 14 BB 6C 70 14 BB 6C 00 00 00 00 ....p..l p..l.... 00 00 00 00 68 14 BB 6C 68 14 BB 6C 00 00 00 00 ....h..l h..l.... 00 00 00 00 6C 14 BB 6C 6C 14 BB 6C 20 12 BE 04 ....l..l l..l.... 00 00 00 00 CD 00 CD CD 00 00 00 00 01 CD CD CD ........ ........ 68 14 BB 6C 78 33 2D 6B 00 00 00 00 00 00 00 00 h..lx3-k ........ 00 00 00 00 01 02 00 00 06 00 00 00 00 00 00 00 ........ ........ 00 00 00 00 00 00 00 00 88 11 BE 04 5C 10 BE 04 ........ ....... 00 00 00 00 20 CD CD CD ........ ........
This software is provided "AS IS" without warranty of any kind.
The project was originally developed by Dan Moulding, but they are no longer supported. Features of version 2.0 are implemented by Arkadiy Shapkin (me).
Links
Visual Leak Detector Previous Official Homepage http://sites.google.com/site/dmoulding/vld CodeProject article: Visual Leak Detector - Enhanced Memory Leak Detection for Visual C++ Finding Memory Leaks Using the CRT Library Visual Leak Detector: Investigate Memory Leaks in Visual C++Last edited Jan 10 at 5:30 AM by KindDragon, version 22
相关知识
关于Visual Studio编程时出现 “0xFEFEFEFE 处有未经处理的异常(在 查找学生信息.exe 中): 0xC00001A5: 检测到无效的异常处理程序例程。“解决方案
Visual Basic 6.0在花卉分类检索中的应用及开发实例.pdf
软件大赛
Visual Geometry Group
Plant Factory2015下载
人人学习网 – 第21页 – 专注于Web开发技术&互联网&PHP编程
土壤精准管理变量施肥地理信息系统的应用研究
字符串 (C++/CX)
网上花店毕业论文
【免费】我自己写的网络聊天系统资源
网址: vld(Visual Leak Detector) 内存泄露检测工具,Visual C++ 2008 https://www.huajiangbk.com/newsview457768.html
上一篇: 岩石园的宠儿 |
下一篇: 古董系列月季 |
推荐分享

- 1君子兰什么品种最名贵 十大名 4012
- 2世界上最名贵的10种兰花图片 3364
- 3花圈挽联怎么写? 3286
- 4迷信说家里不能放假花 家里摆 1878
- 5香山红叶什么时候红 1493
- 6花的意思,花的解释,花的拼音 1210
- 7教师节送什么花最合适 1167
- 8勿忘我花图片 1103
- 9橄榄枝的象征意义 1093
- 10洛阳的市花 1039