How do you detect resource leaks in an MFC MDI application?
Posted on 2005-05-13
Hi everyone. I have an MDI application which has a drag/drop interface. The problem that I'm having is that when I start dragging objects around on my View, memory starts growing very quickly. The program doesn't have any detectable memory leaks that are obvious to me (ie. all 'operator new's' are matched up with operator 'delete') and the program doesn't report any memory leaks when I exit the program. I am suspecting that I am leaking other resources, such as GDI objects, fonts, brushes, etc... Does anybody have any good ideas about how I can go about detecting resource leaks? The program is fairly large, so it's hard to isolate the exact moment where it starts growing.
Let me know if there is other information that I can give you that may be helpful. Thanks.