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

来源:互联网 发布:大数据算法设计 编辑:程序博客网 时间:2024/06/16 23:45

在过去,每次编写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

0 0
原创粉丝点击