首页 > 代码库 > Visual C++ 2012/2013的内存溢出检測工具

Visual C++ 2012/2013的内存溢出检測工具

在过去,每次编写C/C++程序的时候,VLD差点儿是我的标配。有了它,就能够放心地敲代码,随时发现内存溢出。

VLD最高可支持到Visual Studio 2012。不知道以后会不会支持Visual Studio 2013,但反正眼下是不支持的。

相关的讨论见:https://vld.codeplex.com/discussions/471214


那么在Visual Studio 2013下还是老老实有用MFC的内存溢出检測工具,或者用WinDBG吧。

推荐一篇文章:《Memory Leak Detection Using Windbg》http://www.codeproject.com/Articles/31382/Memory-Leak-Detection-Using-Windbg



參考:stackoverflow上的回答:

What is the best free memory leak detector for a C/C++ program and its plug-in DLLs? [closed]

http://stackoverflow.com/questions/25730/what-is-the-best-free-memory-leak-detector-for-a-c-c-program-and-its-plug-in-d


Take a look at these links in order to learn more about WinDbg, memory leaks and memory management in general:

  • Memory Leak Detection Using Windbg
  • Memory Leak Detection in MFC
  • Common WinDbg Commands (Thematically Grouped)
  • C/C++ Memory Corruption And Memory Leaks
  • The Memory Management Reference
  • Using LeakDiag to Debug Unmanaged Memory Leaks
  • Heap: Pleasures and Pains