会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lxg
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2023年7月15日
VS2015 C++代码内存泄漏
摘要: 在可能泄漏的文件头部加入下面几行(保证malloc和new的泄漏都可以检测到) #define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #ifdef _DEBUG //重载new运算符 #define new new(_NORMAL_BLOCK, __FILE__
阅读全文
posted @ 2023-07-15 12:06 lxg_7105
阅读(91)
评论(0)
推荐(0)
编辑