一条检测内存泄露的函数.
2008-01-24 20:06
239 查看
_CrtDumpMemoryLeaks
Dumps all of the memory blocks in the debug heap when a memory leak has occurred (debug version only).
int _CrtDumpMemoryLeaks( void );
Routine Required Header Compatibility
_CrtDumpMemoryLeaks <crtdbg.h> Win NT, Win 95
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBCD.LIB Single thread static library, debug version
LIBCMTD.LIB Multithread static library, debug version
MSVCRTD.LIB Import library for MSVCRTD.DLL, debug version
Return Value
_CrtDumpMemoryLeaks returns TRUE if a memory leak is found; otherwise, the function returns FALSE.
仅仅DEBUG模式起作用.
Dumps all of the memory blocks in the debug heap when a memory leak has occurred (debug version only).
int _CrtDumpMemoryLeaks( void );
Routine Required Header Compatibility
_CrtDumpMemoryLeaks <crtdbg.h> Win NT, Win 95
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBCD.LIB Single thread static library, debug version
LIBCMTD.LIB Multithread static library, debug version
MSVCRTD.LIB Import library for MSVCRTD.DLL, debug version
Return Value
_CrtDumpMemoryLeaks returns TRUE if a memory leak is found; otherwise, the function returns FALSE.
仅仅DEBUG模式起作用.
相关文章推荐
- 一条检测内存泄露的函数
- 内存泄露检测函数_CrtCheckMemory()
- 译文:使用CRT诊断函数检测内存泄露(VC)
- 如何检测内存泄漏的位置/类构造函数内谨慎使用ZeroMemory()函数
- MLeaksFinder:精准 iOS 内存泄露检测工具
- VC 检测程序内存泄露的CMemoryState类
- 内存泄露及检测工具
- 内存泄露检测工具比较
- 浅谈MFC内存泄露检测及内存越界访问保护机制
- Qt5使用内存泄露检测工具—VLD
- 对开发中常见的内存泄露,GDI泄露进行检测
- vs2010使用vld检测内存泄露
- Wince内存泄露检测工具Application Verifier的使用和如何快速定位泄露语句
- 用memwatch检测内存泄露
- C/C++ 、VS、linux 内存泄露检测
- Bullet(Cocos2dx)之内存泄露检测
- Lua内存泄露检测原理
- 内存泄漏之GDI泄露检测
- LeakCanary Android 和 Java 内存泄露检测
- 内存泄露检测工具使用