the _Crt memory leak routines
I just started working on my game''s editor, using MFC. it links (dynamically, eg LoadLibrary, ...) to a DLL with my game in it. because MFC turns on the Crt debug memory leak routines, it shows many memory leaks. thousands. but, on closer inspection, I found out many of the things its reporting as memory leaks are statics. even string literals from my game DLL are showing up as memory leaks. I know for a fact that its reporting the memory leaks before the statics are finished being destroyed, because if I put a breakpoint in the class that has most of the statics, the debug output begins reporting memory leaks when the program breaks at that point. I continue stepping through the debugger, to the next static being destroyed, and it still reports memory leaks.
How can I either set a memory checkpoint so this won''t happen, or disable it completely? I would prefer the first so I could actually find legitimate memory leaks.
Get a better compiler. VS7.1 doesn''t have any false positives related to using the STL in conjunction with the heap checking routines.
You could also try STLPort but I haven''t actually verified if that helps.
You could also try STLPort but I haven''t actually verified if that helps.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement