• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 284
  • Last Modified:

Howto find out where the memory leak is for Visual C++ application

Below is the output when exit the application

Detected memory leaks!
Dumping objects ->
{3687} normal block at 0x03142C40, 36 bytes long.
 Data: <  D             > 14 EB 44 00 96 1F 00 00 B4 01 00 00 01 00 00 00
{744} normal block at 0x0259FDD0, 400 bytes long.
 Data: <    WinSock 2.0 > 02 02 02 02 57 69 6E 53 6F 63 6B 20 32 2E 30 00
{347} normal block at 0x0259B440, 8 bytes long.
 Data: <        > 98 01 00 00 00 00 20 03
{346} normal block at 0x0259B3F0, 16 bytes long.
 Data: <        @ Y     > 00 00 00 00 00 00 20 03 40 B4 59 02 01 00 00 00
0
tommym121
Asked:
tommym121
1 Solution
 
HappyCactusCommented:
This library works fine.

http://www.codeproject.com/KB/cpp/MemLeakDetect.aspx

Just add the header and source to your project and create a static instance of the class.
0
 
tommym121Author Commented:
That is exactly what I need. Thanks
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now