GNOME Bugzilla – Bug 699920
GDI handles leaking in win32 through remote desktop, app ends up crashing
Last modified: 2013-05-08 10:24:56 UTC
Steps to reproduce: * Access a windows machine through RDP and run gtk-demo. * Install Microsoft's "Process Explorer" program, and run it. * Select the gtk-demo process and click "Properties", it will list a lot of info, include the "GDI handles" * Now, just move the mouse pointer over the gtk-demo window all the time, passing over clickable things and such. * The number of GDI handles goes up all the time. Whenever the number of GDI handles reaches 10000, the GTK+ application will crash badly, as the handles retrieved by GetDC() and such will be invalid, making e.g. CreateDIBSection() fail, which in turn makes gdk_pixmap_new() fail, and which inner GTK+ doesn't really expect (see e.g bug 543209, bug 562574, or the more recent bug 699236).
This is a duplicate of bug 671538, and the patch in that bug solves the issue. *** This bug has been marked as a duplicate of bug 671538 ***