#define _CRTDBG_MAP_ALLOC
#include <cstdlib>
#include <crtdbg.h>

 

그리고 메인 함수에 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); 넣어줄것.

 

 

p.s : 특정 메모리 위치 찍어내기 : _CrtSetBreakAlloc(번호) 

+ Recent posts