My big win32 VC++ solution has many memory leaks :). But by default, Visual Studio 2005 shows only the memory allocation numbers and blocks. No filename and line number.
I gone through all the memory detection pages of Microsoft and tried what's written there. Though it worked in a small sample win32 applicatiion I tried, but not in my big solution. I have included the lines
at the end of the stdafx.h file in each project. (a few projects my solution uses are plain win32 projects that don't have stdafx.h and cpp. I included the above lines in a header file which every source file uses in those projects). But still when I close my application, the debugger shows only the same info, nothing more: no filename, line number etc.
Then I thought of setting a "breakpoint at memory allocation number"(http://msdn.microsoft.com/en-us/library/w2fhc9a3(VS.80).aspx
) so that I will anyway know where the leak is occurring. But even that is not making the debugger break at those locations. Why would it happen?
Any simpler way of doing these things? Any way that I don't have to include these things in every file but just one?
Thanks a lot for your help !!!