#define _CRTDBG_MAP_ALLOC
#include <cstdlib>
#include <crtdbg.h>
그리고 메인 함수에 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); 넣어줄것.
p.s : 특정 메모리 위치 찍어내기 : _CrtSetBreakAlloc(번호)
'프로그래밍 > C/C++' 카테고리의 다른 글
단방향 링크드 리스트 뒤집기 (C/C++) (1) | 2024.07.23 |
---|---|
"개체에 일치를 방해하는 형식 한정자가 있음" 오류 해결법 (0) | 2022.03.31 |
짧은 기록 (0) | 2021.06.18 |
포인터 변수 사용시 데이터 오염 문제 (0) | 2020.11.28 |
Const 키워드. (0) | 2020.08.18 |