How to find memory leak? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 24 October 2009 at 2:08pm |
After executing my program I see the following:
MyLib.DLL Terminating!
Detected memory leaks! Dumping objects -> {29735} normal block at 0x04BDFBF0, 16 bytes long. I know I have DEBUG_NEW defined in all my source code. This memory leak could lie in a 3rd party library or similar.
My question is; how can I use the above information to find the allocation that is never freed? The number between the brackets, 29735, is always the same!
|
|
PokerMemento - http://www.pokermemento.com/
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Wohah! Solved it :D
_CrtSetBreakAlloc (29735); FTW! |
|
PokerMemento - http://www.pokermemento.com/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |