![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
内存泄露
Tiantangbujimo7
这个作者很懒,什么都没留下…
展开
-
在vs中使用 vld 进行内存泄漏检测
使用 VLD 库在 visual studio 2017 中检测内存泄漏原创 2022-11-11 14:40:27 · 787 阅读 · 1 评论 -
分配内存函数,检查内存泄漏
C++ malloc 检查内存泄漏原创 2022-11-01 11:25:56 · 168 阅读 · 0 评论 -
VS(Visual Studio)中检测内存泄露
最近写了一个从二进制文件中查找函数的库需要放到服务端,于是要解决内存泄露的问题,首先测试添加头文件:#define CRTDBG_MAP_ALLOC #include <crtdbg.h>在 mian 函数结尾使用_CrtDumpMemoryLeaks();测试程序:#include <stdlib.h>#define CRTDBG_MAP_ALLOC #include <crtdbg.h>int main(){ char *a =原创 2022-01-24 14:19:42 · 1878 阅读 · 0 评论