#include "stdafx.h"
#define _CRTDBG_MAP_ALLOC
#include<stdlib.h>
#include<crtdbg.h>
#include <deque>
using std::deque;
deque<int> des;
int _tmain(int argc, _TCHAR* argv[])
{
_CrtDumpMemoryLeaks();
return 0;
}
OUTPUT如下:
“123.exe”: 已加载“E:\projects\LocoLibraryMge\Debug\123.exe”,已加载符号。
“123.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
“123.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
“123.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
“123.exe”: 已加载“C:\Windows\SysWOW64\msvcp100d.dll”,已加载符号。
“123.exe”: 已加载“C:\Windows\SysWOW64\msvcr100d.dll”,已加载符号。
Detected memory leaks!
Dumping objects ->
{183} normal block at 0x003782D0, 8 bytes long.
Data: < > A0 D1 A5 00 00 00 00 00
Object dump complete.
程序“[4984] 123.exe: 本机”已退出,返回值为 0 (0x0)。
**#include "stdafx.h"
#define _CRTDBG_MAP_ALLOC
#include
#include
#include
using std::deque;
deque des;
int _tmain(int argc, _TCHAR* argv[])
{
_CrtDumpMemoryLeaks();
return 0;
}**
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。