Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question on the memory error

Status
Not open for further replies.

maswien

Technical User
Sep 24, 2003
1,286
CA

We have a code that returns the ODBC driver list, the code used to be working when compiled on MSVC 6.0 compiler, after we upgrade to 7.0, it compiles, but fails when run it:


Detected memory leaks!
...\Vc7\include\crtdbg.h(689) : {500} normal block at 0x09B91098, 112 bytes long.

...

Any idea?

Thanks
 
when you double-click on this line in the output window, where does it take you?

bdiamond
 

The code is not compiled in visual studio IDE, the output error is in the dos console window.
 
I don't remember exactly what they are, but there's a couple of functions you can use that start with '_Crt' that will allow you to set a breakpoint on a certain memory allocation (in this case 500) so that if the allocation number is always 500 you can make your program stop on exactly the 500th memory allocation to see what it is that's causing the leak. hope this helps!

bdiamond
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top