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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=77824 --- shadow/77824 2006-03-17 20:14:35.000000000 -0500 +++ shadow/77824.tmp.13269 2006-03-17 20:14:35.000000000 -0500 @@ -0,0 +1,84 @@ +Bug#: 77824 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: im: crash when calling PaintEventArgs.Graphics.Transform in OnPaint() + +Description of Problem: +in an OnPaint handler for a UserControl-derived control, I am getting a +crash with the attached stacktrace. I can't seem to reproduce it in a small +test app. + +Actual Results: +** (<unknown>:13508): CRITICAL **: GdipGetWorldTransform: assertion +'graphics != NULL' failed + +Unhandled Exception: System.ArgumentException: Invalid Parameter. A null +reference or invalid value was found. +in [0x00077] (at +/home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:180) +System.Drawing.GDIPlus:CheckStatus (Status status) +in [0x00019] (at +/home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/Graphics.cs:2426) +System.Drawing.Graphics:get_Transform () +in (wrapper remoting-invoke-with-check) +System.Drawing.Graphics:get_Transform () +in <0x0003f> WindowsUI.Controls.Cells.CellHost:OnPaint +(System.Windows.Forms.PaintEventArgs e) +in [0x001dd] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3738) +System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m) +in [0x00002] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:508) +System.Windows.Forms.ScrollableControl:WndProc (System.Windows.Forms.Message m) +in [0x00002] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:335) +System.Windows.Forms.ContainerControl:WndProc (System.Windows.Forms.Message m) +in [0x00002] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/UserControl.cs:92) +System.Windows.Forms.UserControl:WndProc (System.Windows.Forms.Message m) +in [0x00007] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:159) +System.Windows.Forms.Control+ControlNativeWindow:WndProc +(System.Windows.Forms.Message m) +in [0x00056] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146) +System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, IntPtr +wParam, IntPtr lParam) +in [0x0001c] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2404) +System.Windows.Forms.XplatUIX11:DispatchMessage (System.Windows.Forms.MSG msg) +in [0x00006] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:385) +System.Windows.Forms.XplatUI:DispatchMessage (System.Windows.Forms.MSG msg) +in [0x0023f] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:395) +System.Windows.Forms.Application:RunLoop (Boolean Modal, +System.Windows.Forms.ApplicationContext context) +in [0x00006] (at +/home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:288) +System.Windows.Forms.Application:Run () +in <0x0015a> WindowsUI.UI:Start () +in <0x0033d> Client.MainEntryPoint:Main (System.String[] arguments) + + + +Expected Results: +Shouldn't crash -- it works fine on MS.NET 1.1 and 2.0. + +How often does this happen? +Every time. + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
