[Mono-bugs] [Bug 81153][Nor] Changed - Regression in MDI drawing.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Mar 20 01:42:02 EDT 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 toshok at ximian.com.


--- shadow/81153	2007-03-17 18:36:05.000000000 -0500
+++ shadow/81153.tmp.21061	2007-03-20 00:42:02.000000000 -0500
@@ -75,6 +75,17 @@
 MDI window with a custom control in it that paints a list of objects
 with the OnPaint event.
 Basically, make two windows (any order) by clicking on the first and
 second buttons, then start messing around with them.  Drawing blows up
 on almost anything you do.
+------- Additional Comments From toshok at ximian.com  2007-03-20 00:42 -------
+(19:02:32) toshok: current thinking: there's some connection made
+between a drawable and a picture either inside the X server or in the
+render code.  when the drawable is destroyed, pictures are implicitly
+(19:02:39) toshok: so the XRenderFreePicture calls fail
+the attached patch adds the graphics objects we create via
+Control.CreateGraphics to the Hwnd, and disposes of them when the Hwnd
+is destroyed (in the X case, *before* the window is destroyed).

More information about the mono-bugs mailing list