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=79119 --- shadow/79119 2006-08-20 06:54:21.000000000 -0400 +++ shadow/79119.tmp.1450 2006-08-20 06:54:21.000000000 -0400 @@ -0,0 +1,175 @@ +Bug#: 79119 +Product: Mono: Class Libraries +Version: unspecified +OS: +OS Details: Ubuntu Dapper, mono-1.1.16.1 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Backtraces when closing application + +Description of Problem: + +When I close my simple app and use Application.ApplicationExit or Closing +event handler I get strange looking windows and a backtrace. I'll attach +two simple examples, the output of the first one (forms1.exe) is this: + +Mono System.Windows.Forms Assembly [$auto_build_revision$] +Gtk colorscheme read +X11 Error encountered: + Error: BadDrawable (invalid Pixmap or Window parameter) + Request: 14 (X_GetGeometry) + Resource ID: 0x3800008 + Serial: 7 + Hwnd: Hwnd, Mapped:False ClientWindow:0x3800008, +WholeWindow:0x3800007, Parent:[Hwnd, Mapped:False ClientWindow:0x3800006, +WholeWindow:0x3800005, Parent:[<null>]] + Control: System.Windows.Forms.Button, Text: OK + at System.Windows.Forms.XplatUIX11.WhereString () + at System.Windows.Forms.XplatUIX11.HandleError () + at System.Windows.Forms.XplatUIX11.HandleError () + at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux () + at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux () + at System.Drawing.Graphics.FromXDrawable () + at System.Drawing.Graphics.FromHwnd () + at System.Windows.Forms.XplatUIX11.PaintEventStart () + at System.Windows.Forms.XplatUI.PaintEventStart () + at System.Windows.Forms.Control.WndProc () + at System.Windows.Forms.ButtonBase.WndProc () + at System.Windows.Forms.Button.WndProc () + at System.Windows.Forms.Control+ControlNativeWindow.WndProc () + at System.Windows.Forms.NativeWindow.WndProc () + at System.Windows.Forms.XplatUIX11.SendMessage () + at System.Windows.Forms.XplatUIX11.UpdateWindow () + at System.Windows.Forms.XplatUI.UpdateWindow () + at System.Windows.Forms.Control.Refresh () + at System.Windows.Forms.ButtonBase.Redraw () + at System.Windows.Forms.ButtonBase.OnGotFocus () + at System.Windows.Forms.Control.WndProc () + at System.Windows.Forms.ButtonBase.WndProc () + at System.Windows.Forms.Button.WndProc () + at System.Windows.Forms.Control+ControlNativeWindow.WndProc () + at System.Windows.Forms.NativeWindow.WndProc () + at System.Windows.Forms.XplatUIX11.SendMessage () + at System.Windows.Forms.XplatUIX11.SetFocus () + at System.Windows.Forms.XplatUI.SetFocus () + at System.Windows.Forms.Control.SelectChild () + at System.Windows.Forms.ContainerControl.set_ActiveControl () + at System.Windows.Forms.Control.Select () + at System.Windows.Forms.Control.SelectNextControl () + at System.Windows.Forms.Form.OnCreateControl () + at System.Windows.Forms.Control.CreateControl () + at System.Windows.Forms.Control.SetVisibleCore () + at System.Windows.Forms.Form.SetVisibleCore () + at System.Windows.Forms.Control.set_Visible () + at System.Windows.Forms.Application.RunLoop () + at System.Windows.Forms.Form.ShowDialog () + at System.Windows.Forms.Form.ShowDialog () + at System.Windows.Forms.MessageBox+MessageBoxForm.RunDialog () + at System.Windows.Forms.MessageBox.Show () + at SomeForm.OnAppExit () + at System.MulticastDelegate.invoke_void_object_EventArgs () + at System.Windows.Forms.Application+MWFThread.Exit () + at System.Windows.Forms.Application.RunLoop () + at System.Windows.Forms.Application.Run () + at Gui.Main () + +When i try to close the second one forms2.exe, I've a MessageBox not +properly displayed/refreshed (lacking "No" button): + +http://greblus.go.pl/stuff/f2.1.png + +After clicking No it stays not refreshed (but it's working after I force it +to refresh): + +http://greblus.go.pl/stuff/f2.2.png + +The output: +Mono System.Windows.Forms Assembly [$auto_build_revision$] +Gtk colorscheme read +X11 Error encountered: + Error: BadDrawable (invalid Pixmap or Window parameter) + Request: 14 (X_GetGeometry) + Resource ID: 0x3A00008 + Serial: 7 + Hwnd: Hwnd, Mapped:False ClientWindow:0x3A00008, +WholeWindow:0x3A00007, Parent:[Hwnd, Mapped:False ClientWindow:0x3A00006, +WholeWindow:0x3A00005, Parent:[<null>]] + Control: System.Windows.Forms.Button, Text: Yes + at System.Windows.Forms.XplatUIX11.WhereString () + at System.Windows.Forms.XplatUIX11.HandleError () + at System.Windows.Forms.XplatUIX11.HandleError () + at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux () + at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux () + at System.Drawing.Graphics.FromXDrawable () + at System.Drawing.Graphics.FromHwnd () + at System.Windows.Forms.XplatUIX11.PaintEventStart () + at System.Windows.Forms.XplatUI.PaintEventStart () + at System.Windows.Forms.Control.WndProc () + at System.Windows.Forms.ButtonBase.WndProc () + at System.Windows.Forms.Button.WndProc () + at System.Windows.Forms.Control+ControlNativeWindow.WndProc () + at System.Windows.Forms.NativeWindow.WndProc () + at System.Windows.Forms.XplatUIX11.SendMessage () + at System.Windows.Forms.XplatUIX11.UpdateWindow () + at System.Windows.Forms.XplatUI.UpdateWindow () + at System.Windows.Forms.Control.Refresh () + at System.Windows.Forms.ButtonBase.Redraw () + at System.Windows.Forms.ButtonBase.OnGotFocus () + at System.Windows.Forms.Control.WndProc () + at System.Windows.Forms.ButtonBase.WndProc () + at System.Windows.Forms.Button.WndProc () + at System.Windows.Forms.Control+ControlNativeWindow.WndProc () + at System.Windows.Forms.NativeWindow.WndProc () + at System.Windows.Forms.XplatUIX11.SendMessage () + at System.Windows.Forms.XplatUIX11.SetFocus () + at System.Windows.Forms.XplatUI.SetFocus () + at System.Windows.Forms.Control.SelectChild () + at System.Windows.Forms.ContainerControl.set_ActiveControl () + at System.Windows.Forms.Control.Select () + at System.Windows.Forms.Control.SelectNextControl () + at System.Windows.Forms.Form.OnCreateControl () + at System.Windows.Forms.Control.CreateControl () + at System.Windows.Forms.Control.SetVisibleCore () + at System.Windows.Forms.Form.SetVisibleCore () + at System.Windows.Forms.Control.set_Visible () + at System.Windows.Forms.Application.RunLoop () + at System.Windows.Forms.Form.ShowDialog () + at System.Windows.Forms.Form.ShowDialog () + at System.Windows.Forms.MessageBox+MessageBoxForm.RunDialog () + at System.Windows.Forms.MessageBox.Show () + at SomeForm.OnClosing () + at System.MulticastDelegate.invoke_void_object_CancelEventArgs () + at System.Windows.Forms.Form.OnClosing () + at System.Windows.Forms.Form.WndProc () + at System.Windows.Forms.Control+ControlNativeWindow.WndProc () + at System.Windows.Forms.NativeWindow.WndProc () + at System.Windows.Forms.XplatUIX11.DispatchMessage () + at System.Windows.Forms.XplatUI.DispatchMessage () + at System.Windows.Forms.Application.RunLoop () + at System.Windows.Forms.Application.Run () + at Gui.Main () + +Steps to reproduce the problem: +1. Compile and run the attached files + +Actual Results: +Backtraces, windows not displayed properly and slowly. + +Expected Results: +No backtraces. + +How often does this happen? +Always. + +Additional Information: +if i unset MONO_THEME it's still happening, so it's not the reason (my +first guess). _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
