Original Post
I'm trying to detect memory leaks using the crt library I do as follows #define _CRTDBG_MAP_ALLOC #include in the WinMain function just before the return I write: _CrtDumpMemoryLeaks(); but in the debug window I receive these messages D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {48} normal block at 0x003D2870, 1564 bytes long. Data: 66 6F 6E 74 2F 66 6F 6E 74 00 00 00 00 00 00 00 D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {47} normal block at 0x003D0890, 16 bytes long. Data: < ` @ @ > 05 00 00 00 60 19 40 00 00 01 00 00 09 11 40 00 D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {45} normal block at 0x003D0800, 4 bytes long. Data: < @ > 86 16 40 00 D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {44} normal block at 0x003D07B8, 4 bytes long. Data: 6E 10 40 00 I want to know the name of the file where the leak occured , why is this D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h? instead of one of the files in my project? I know that the new and delete are redefined here D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h? but I want to know the file in my project that causes the leak, this would be more useful soi where am I doing it wrong? [Edited by - Deliverance on August 13, 2006 5:39:30 AM]