[Gtkradiant] [Bug 99] GDI leak in GTK console text and entity properties text
Sun, 24 Jun 2001 17:50:07 -0500
------- Additional Comments From email@example.com 2001-06-24 17:50 -------
cleaned up Gtk libraries:
- updated to libiconv 1.6.1
- removed all dependencies to gnu-intl, we don't care about
internationalisation anyway (#undef ENABLE_NLS)
this is good for Gtk stuff (lightweight and therefore more stable), but it
doesn't affect the GDI problem at all.
Tried to comment out various things in Gtk library under gtk_text_insert,
either is freezes Radiant, or the GDI leak is there.
It may be an artifact due to the GDI count function, but: it seems if you click
in the view and generate a Sys_Printf message, the GDI count doesn't go up
immediatly, it goes up when you move the mouse afterwards. I am not sure if
this fact is relevant, or if it can be used to track the problem.
Tried commenting out all gdk_window_set_cursor calls, no effect on GDI leak.
Things that could be done:
- get more information on the GDI objects being created. Due to the shit that
is windows 2000, can't get accurate information besides the count. win98 is
said to allow better. Try with GDIUsage.exe to get more info on the GDI
- try to reproduce the problem on a test program. possibly, compile that test
program against current official Gtk libs and see on the gimpwin-dev mailing
list if anyone has a clue