I've got some nasty memory leaks that I have been trying to find for a while. I'm using Visual C++ 6.0, and I just discovered that in debug mode, it lists the leaking memory zones after the program is closed.
I've been looking around on msdn, and found out about a flag (_CRTDBG_MAP_ALLOC) that supposedly associates the faulty code with the leak. The problem is (providing I am right about this flag) I can't compile with this flag on!
I get this error:
error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined
Anybody knows how to make this work, or how to better find the memory leaks?