摘要:
具有动态的分配和释放内存的能力是C/C++程序语言的重要特色之一。VisualC++ debugger和CRT库提供了一系列有效的检测和鉴定内存泄漏的工具。 设置内存泄漏检测 检测内存泄漏的基本工具是调试器和CRT调试堆函数。为了使用调试堆函数,在你的程序中你必须含有下面的说明: #define _CRTDBG_MAP_ALLOC #include... 阅读全文
posted @ 2008-08-13 23:25
能巴
阅读(434)
评论(0)
推荐(0)
摘要:
1. Use _CrtDumpMemoryLeaks() to check whether there is memory leak in program. With the help of _CRTDBG_MAP_ALLOC, it can output memory leak info with file line info for those memory block allocat... 阅读全文
posted @ 2008-08-13 23:21
能巴
阅读(412)
评论(0)
推荐(0)