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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When my C++ aplication exits, it di

Status
Not open for further replies.

CaKiwi

Programmer
Apr 8, 2001
1,294
US
When my C++ aplication exits, it displays an error window with the message

DAMAGE: After Client Block (#73) at 0x00BA6E38

The debug window displays several messages like

memory check error at 0x00BA864C = 0x00, should be 0xFD

I assume I am overwriting memory. Is there some way to find out where in my code this is happening?

TIA
CaKiwi

After all is said and done, a lot more will have been said than done.
 
Are you catching any CExceptions??? if you are you need to call thier delete method. This got me for a while. Look at where the "memory leaks detected" occurs in the debug window and see where the most likely place is that is is originating. If it is in a thread it will be more difficult but not impossible.

Matt
 
I set a break everywhere I am catching an exception and did not stop at any of them. Is there some way to set a break to stop whenever a particular memory address is changed? Or does anyone have any other suggestions?

Thanks in advance.
CaKiwi

"Cheer up" they said, "Things could be worse". So we did and they are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top