How to debug GDI Object Leaks?
问题 I'm not quite sure how to go about doing this. It is a large app, and we are having GDI object "leaks" on most of our forms. Is there a tool to help out? Is there a tutorial on how to use such a tool? Should I just start deleting code from our forms until I narrow the offender down? (there is ALOT of code). 回答1: It is pretty rare to exceed the 10,000 object limit for GDI objects only, the garbage collector will take care of them when you don't call their Dispose() method yourself. A much more