GDI handles in a DotNET application
Posted
by David Rutten
on Stack Overflow
See other posts from Stack Overflow
or by David Rutten
Published on 2010-03-20T12:39:43Z
Indexed on
2010/03/20
12:41 UTC
Read the original article
Hit count: 630
My pure DotNET library runs as a plugin inside an unmanaged desktop application. I've been getting a steady (though low) stream of crash reports that seem to indicate a problem with GDI handles (fonts in error messages etc. revert to the system font, display of all sorts of controls break down, massive crash shortly after).
My Forms have few controls, but I do a lot of GDI+ drawing in User controls. What's a good way to tell how many handles I'm using, or even leaking?
Thanks, David
© Stack Overflow or respective owner