Use Visual leak detector to detect memory leakage
Http://www.ltesting.net/AutoTest/Opentest/200609/896.htm
Introduction
Visual c ++ provides built-in memory leak detection, but its capabilities are minimal at best. this memory leak detector was created as a free alternative to the built-in Memory Leak Detector provided with Visual C ++. here are some of visual leak detector's features, none of which exist in the built-in detector:
- Provides a complete stack trace for each leaked block, including source file and line number information when available.
- Provides complete data dumps (in Hex and ASCII) of leaked blocks.
- Customizable level of detail in the memory leak report.
other after-market leak detectors for Visual C ++ are already available. but most of the really popular ones, like purify and boundschecker, are very expensive. A few free alternatives exist, but they're often too intrusive, restrictive, or unreliable. here are some key advantages that visual leak detector has over primary other free alternatives:
- Visual leak detector is cleanly packaged as an easy-to-use library. you don't need to compile its source code to use it. and you only need to make minor additions to your own source code to integrate it with your program.
- In addition to providing stack traces with source files, line numbers, and function names, visual leak detector also provides data dumps.
- It works with both C ++ and C Programs (compatible with both
New
/Delete
AndMalloc
/Free
).
- The full source code to the library is supported and it is well known ented, so it is easy to customize it to suit your needs.
Visual leak detector is licensed free of charge as a service to the Windows developer community.
Http://www.codeproject.com/KB/applications/visualleakdetector.aspx