この文書の現在のバージョンと選択したバージョンの差分を表示します。
次のリビジョン | 前のリビジョン | ||
実用編:ヒープのメモリリーク診断 [2009/02/03 07:50] admin 作成 |
実用編:ヒープのメモリリーク診断 [2013/12/23 09:08] (現在) |
||
---|---|---|---|
ライン 8: | ライン 8: | ||
<code cpp> | <code cpp> | ||
#if _DEBUG | #if _DEBUG | ||
+ | #include <crtdbg.h> | ||
#define malloc(size) _malloc_dbg(size, _NORMAL_BLOCK, __FILE__, __LINE__ ) | #define malloc(size) _malloc_dbg(size, _NORMAL_BLOCK, __FILE__, __LINE__ ) | ||
#define calloc(s1,s2) _calloc_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__ ) | #define calloc(s1,s2) _calloc_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__ ) |