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=82040 --- shadow/82040 2007-07-08 08:12:12.000000000 -0400 +++ shadow/82040.tmp.11268 2007-07-08 08:12:12.000000000 -0400 @@ -0,0 +1,67 @@ +Bug#: 82040 +Product: Mono: Class Libraries +Version: 1.2 +OS: +OS Details: Windows XP SP2 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: [Win32] TableLayoutPanel: NullReferenceException when no children are added + +When no child controls are added to a TableLayoutPanel, then a NRE is +thrown when it s painted. + +To reproduce, compile and run the attached code snippet. + +Expected result: + +Successful execution. + +Actual result: + +Unhandled Exception: System.NullReferenceException: Object reference not +set to an instance of an object + +at System.Windows.Forms.TableLayoutPanel.OnPaintBackground +(System.Windows.Forms.PaintEventArgs) <0x001c9> +at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message&) +<0x000e9> +at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) +<0x00165> +at System.Windows.Forms.ScrollableControl.WndProc +(System.Windows.Forms.Message&) <0x0000d> +at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x00014> +at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00023> +at System.Windows.Forms.NativeWindow.WndProc +(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0015a> +at System.Windows.Forms.XplatUIWin32.InternalWndProc +(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00046> +at (wrapper native-to-managed) +System.Windows.Forms.XplatUIWin32.InternalWndProc + (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0004d> +in (unmanaged) 7E418733 +at (wrapper managed-to-native) +System.Windows.Forms.XplatUIWin32.Win32DispatchMessage +(System.Windows.Forms.MSG&) <0x00004> +at System.Windows.Forms.XplatUIWin32.DispatchMessage +(System.Windows.Forms.MSG&) + <0x0000a> +at System.Windows.Forms.XplatUI.DispatchMessage +(System.Windows.Forms.MSG&) <0x00015> +at System.Windows.Forms.Application.RunLoop +(bool,System.Windows.Forms.ApplicationContext) <0x0091a> +at System.Windows.Forms.Form.ShowDialog +(System.Windows.Forms.IWin32Window) <0x00299> +at System.Windows.Forms.Form.ShowDialog () <0x0000c> +at (wrapper remoting-invoke-with-check) +System.Windows.Forms.Form.ShowDialog () +<0x00038> +at Program.Main () <0x00191> _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
