tomtetlaw -1 Posting Pro

I use CRT memory leak checking in my program, when it closes, it produces this output:

Detected memory leaks!
Dumping objects ->
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {133} normal block at 0x003B6938, 4 bytes long.
 Data: <  5 > 00 00 35 00 
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {132} normal block at 0x003B6978, 8 bytes long.
 Data: < A7  B7 > FC 41 37 00 0C 42 37 00 
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {129} normal block at 0x003B6838, 4 bytes long.
 Data: <    > 00 00 00 10 
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {128} normal block at 0x003B67E0, 24 bytes long.
 Data: < g;  g;  g;     > E0 67 3B 00 E0 67 3B 00 E0 67 3B 00 CD CD CD CD 
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {127} normal block at 0x003B6788, 24 bytes long.
 Data: < g;  g;  g;     > 88 67 3B 00 88 67 3B 00 88 67 3B 00 CD CD CD CD 
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {126} normal block at 0x003B6730, 24 bytes long.
 Data: <0g; 0g; 0g;     > 30 67 3B 00 30 67 3B 00 30 67 3B 00 CD CD CD CD 
c:\program files\microsoft visual studio 9.0\vc\include\crtdbg.h(1203) : {125} normal block at 0x003B66D8, 24 bytes long.
 Data: < f;  f;  f;     > D8 66 3B 00 D8 66 3B 00 D8 66 3B 00 CD CD CD CD 
Object dump complete.

When I add _CrtSetBreakAlloc(133); and run my program again, it never does the breakpoint, how could I get rid of this memory leak?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.