Thanks for the response
while going through ctrdbg.h I found:
Code:
/* Reports with file/line info */
#define _RPTF0(rptno, msg) \
_RPT_BASE((rptno, __FILE__, __LINE__, NULL, "%s", msg))
So I guess it uses __FILE__ ...
I also searched MSDN for DEBUG_NEW and it turned out to be an MFC thing, so it's not defined because I use Win32 API.
I tried to add:
Code:
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#endif
but I didn't get actual filenames or line numbers
Anyway, Should I add all these stuff (crtdbg.h defines / your defines) in every .cpp file I have, or it's enough to add it to main.cpp (where WinMain is)?
I tried to add them to the file where I suspect leaks but I got the same result.
Thanks in advance.