[Mono-bugs] [Bug 76991][Nor] Changed - Dispose() of graphics
causing Unhandled Exception
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Dec 20 13:47:13 EST 2005
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 peter at novonyx.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76991
--- shadow/76991 2005-12-13 22:34:13.000000000 -0500
+++ shadow/76991.tmp.14168 2005-12-20 13:47:13.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 76991
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details: Linux vik.econz.co.nz 2.6.14-2-686 Debian
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
Priority: Normal
Component: Windows.Forms
AssignedTo: peter at novonyx.com
ReportedBy: vik at econz.co.nz
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -200,6 +200,14 @@
// Dispose (causes crash on Mono)
g.Dispose();
}
}
}
+
+------- Additional Comments From peter at novonyx.com 2005-12-20 13:47 -------
+The sample is broken. NEVER dispose the graphics context in a paint
+event handler, you didn't create the Graphics object therefore you
+shouldn't dispose of it. You might need to call the base class and it
+can't do it's job with a disposed graphics object. However, I did fix
+the resulting crash in System.Drawing. If you update to svn head it
+will no longer crash
More information about the mono-bugs
mailing list