[Mono-bugs] [Bug 80552][Maj] New - [Windows] Font.ToHfont leaks GDI objects

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 18 18:23:59 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by monkey at jpobst.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80552

--- shadow/80552	2007-01-18 18:23:59.000000000 -0500
+++ shadow/80552.tmp.2339	2007-01-18 18:23:59.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 80552
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: WinXPSP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: monkey at jpobst.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [Windows] Font.ToHfont leaks GDI objects
+
+Calling Font.ToHfont seems to leak a GDI object every time it is called.
+
+Running the attached case on WinMono reports ~2030 GDI objects in use.
+Running on MS .Net reports ~30 GDI objects in use.
+
+(GDI object stats from the GDI Objects column of task manager's process list.)
+
+Apps crash on my machine (OutOfMemoryException) when they have about 10,000
+GDI objects in use.


More information about the mono-bugs mailing list