목록2025/09/04 (1)
아!두이노, 라즈베리, 코딩 노가다
메모리 누수 간단 검사 방법
#if defined(_DEBUG)#define _CRTDBG_MAP_ALLOC // 디버그 할당을 사용하겠다는 선언#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) // 덤프를 좀 더 쉽게 보기 위한 것#endif// Memory block identification// #define _FREE_BLOCK 0// #define _NORMAL_BLOCK 1// #define _CRT_BLOCK 2// #define _IGNORE_BLOCK 3// #define _CLIENT_BLOCK 4// #define _MAX_BLOCKS 5// 다른 건 별로 의미 없고 _NORMAL_BLOCK과 _CLIENT_BLOCK만 알면됨#..
C, C++
2025. 9. 4. 15:19
