[Gtkradiant] [Bug 99] New: GDI leak in GTK console text and entity properties text

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Thu, 21 Jun 2001 04:55:31 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=99

           Summary: GDI leak in GTK console text and entity properties text
           Product: GtkRadiant
           Version: 1.1-TA
          Platform:
               URL:
        OS/Version: Windows 2000
            Status: NEW
 Status Whiteboard:
          Keywords:
        Resolution:
          Severity: normal
          Priority: P2
         Component: editor
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: wjoseph@europe.ea.com


Each time a new line is printed in the console (Sys_Printf) one or two GDI 
objects are added to the count shown in win2k Task Manager.

Also, when the entity properties window is refreshed when selecting a standard 
worldspawn brush, the text in entities.def for the WORLDSPAWN entity is re-
printed, adding about 27 GDI objects to the count.

After a while the number of GDI objects overflows available memory, causing 
incredibly slow redraw and eventual fatal error: Gdk-WARNING **: gdkgc-
win32.c:945: SaveDC failed: Not enough storage is available to process this 
command.