Thanks for the response
while going through ctrdbg.h I found:
So I guess it uses __FILE__ ...
/* Reports with file/line info */
#define _RPTF0(rptno, msg) \
_RPT_BASE((rptno, __FILE__, __LINE__, NULL, "%s", msg))
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:
but I didn't get actual filenames or line numbers
static char THIS_FILE=__FILE__;
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.