Memory leaks

Started by
1 comment, last by CamelFly 22 years, 3 months ago
Is there an easy way of detecting where the allocation of the memory reported as a leak by _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ) occured? I have 500 bytes leaking and it bugs the hell out of me. I want to remove them so I can see if any new leaks occurs + it seems like the right thing to do. [Insert cool signature here]
[Insert cool signature here]
Advertisement
http://www.gamedev.net/community/forums/topic.asp?topic_id=68645
http://www.gamedev.net/community/forums/topic.asp?topic_id=75332
http://www.gamedev.net/community/forums/topic.asp?topic_id=71992


Searching the forums before posting is considered a good thing to do. Basically the overloading of new is slightly bugged in the CRT so you need to overload new in a macro which gets the file and line number...

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Sorry.

My code is now completely airtight, a non virtual destructor was the villain...

[Insert cool signature here]
[Insert cool signature here]

This topic is closed to new replies.

Advertisement