Quote:Original post by Kwizatz
Edit: Actually, the VC leak detection seems to be a pain to use
// All translation units must include:#if defined( _MSC_VER )#define _CRTDBG_MAP_ALLOC#include <stdlib.h>#include <crtdbg.h>#define new DEBUG_NEW#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )#endif// And add this at main()_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );