#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

 

위 코드를 cpp파일에 넣으면 메모리 릭이 발생하는 위치를 확인할 수 있다.

+ Recent posts