当前位置:网站首页>内存泄漏工具VLD安装及使用
内存泄漏工具VLD安装及使用
2022-07-03 02:46:00 【黑旋风大李逵】
1.初始VLD
VLD:Visual Leak Detector,可视化泄漏检测。
2.安装VLD(适用于vs2010~vs2015)
其它版本请参考其他文章进行手动配置。
软件下载地址:https://kinddragon.github.io/vld/
VLD安装步骤:
双击下载的.exe文件






经过以上步骤VLD就安装完毕了。
VLD安装目录下的文件:
测试VLD是否能用:
我使用的软件是vs2015
新建立一个C++工程






测试代码:
#include <iostream>
#include <vld.h>
using namespace std;
void main()
{
int *p = new int;//申请空间后没有进行释放,肯定是存在内存泄漏的
}


控制台显示结果:
说明有4个字节的内存泄漏,正好是一个int类型。
边栏推荐
- Gbase 8C function / stored procedure parameters (I)
- 简单理解svg
- leetcode540
- GBase 8c系统表-pg_aggregate
- 【教程】chrome關閉跨域策略cors、samesite,跨域帶上cookie
- 【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
- xiaodi-笔记
- GBase 8c 函数/存储过程参数(一)
- GBase 8c 触发器(一)
- Check log4j problems using stain analysis
猜你喜欢

Add automatic model generation function to hade

SQL statement

Kubernetes family container housekeeper pod online Q & A?

Kubernetes cluster log and efk architecture log scheme

定了,就选它

HW-初始准备

面试项目技术栈总结

Mathematical statistics -- Sampling and sampling distribution

Xiaodi notes
[advanced ROS] Lesson 6 recording and playback in ROS (rosbag)
随机推荐
Sqlserver row to column pivot
random shuffle注意
The difference between left value and right value in C language
[tutorial] chrome turns off cross domain policies CORS and samesite, and brings cookies across domains
GBase 8c触发器(二)
为什么会选择框架?选择什么样的框架
Random shuffle note
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
The left value and the right finger explain better
Today, it's time to copy the bottom!
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
[translation] modern application load balancing with centralized control plane
Add automatic model generation function to hade
GBase 8c 函数/存储过程定义
xiaodi-笔记
左值右指解释的比较好的
Joking about Domain Driven Design (III) -- Dilemma
Gbase 8C function / stored procedure parameters (I)
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
Classes and objects - initialization and cleanup of objects - constructor call rules