1. 클래스 파일 상단에 표시
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
2. 부분 디버깅
1) stdAfx.h에 추가
#include <crtdbg.h>
2) 메모리 확장 다음 delete 다음 _CrtDumpMemoryLeaks();
3) 발견된 번호로 _CrtSetBreakAlloc(149); 앞에서 찾기
댓글 없음:
댓글 쓰기