VS 2008 中内存泄露检查

来源:互联网 发布:sql触发器实例 old 编辑:程序博客网 时间:2024/06/08 08:37

   
#define _CRTDBG_MAP_ALLOC

#include <crtdbg.h>

#ifdef _DEBUG

#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)

#endif