Original Post
I read the article titled "How To Find Memory Leaks " in flip code.com.Its really interesting.the article is pretty good.But i have a doubt in that. the new operator is overridden with 3 parameters.so i put the declaration in stdafx.h.wherei have to insert the defintion of the those function like( new,delete, AddTrack,RemoveTrack etc.,).i have to insert in stdafx.cpp or ? Similarly wherei have to insert the following code ( whether in the filw where we are using the new operator or in stdafx.h itself ) //------------------------ #ifdef _DEBUG #define DEBUG_NEW new(__FILE__, __LINE__) #else #define DEBUG_NEW new #endif #define new DEBUG_NEW //------------------------ if anyone can clarify it will be greatful. thanks babu