#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)。