[Mono-bugs] [Bug 77972][Nor] New - Tab Page remove crashes

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 31 17:08:30 EST 2006

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 eric at rengeo.com.


--- shadow/77972	2006-03-31 17:08:30.000000000 -0500
+++ shadow/77972.tmp.21377	2006-03-31 17:08:30.000000000 -0500
@@ -0,0 +1,66 @@
+Bug#: 77972
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Centos 4.2
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: eric at rengeo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Tab Page remove crashes
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+When a form starts with two tab pages, and one is attempted to be removed,
+the application crashes with an exception:
+Unhandled Exception: System.ArgumentOutOfRangeException: ControlCollection
+does not have that many controls
+Parameter name: index
+in <0x0010e> System.Windows.Forms.Control+ControlCollection:get_Item (Int32
+in <0x00021> System.Windows.Forms.TabControl:GetTab (Int32 index)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.TabControl:GetTab (int)
+in <0x00013> System.Windows.Forms.TabControl+TabPageCollection:get_Item
+(Int32 index)
+in <0x002a4> System.Windows.Forms.TabControl:CalcTabRows (Int32 row_width)
+in <0x0004a> System.Windows.Forms.TabControl:CalcTabRows ()
+in <0x00028> System.Windows.Forms.TabControl:ResizeTabPages ()
+in <0x00013> System.Windows.Forms.TabControl:CreateHandle ()
+in <0x00034> System.Windows.Forms.Control:CreateControl ()
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:CreateControl ()
+in <0x00076> System.Windows.Forms.Control:CreateControl ()
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:CreateControl ()
+in <0x00076> System.Windows.Forms.Control:CreateControl ()
+in <0x00018> System.Windows.Forms.Control:Show ()
+in (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:Show ()
+in <0x00091> System.Windows.Forms.Application:RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context)
+in <0x00035> MONO_testApp.Form1:Main ()
+Steps to reproduce the problem:
+1. Compile attached test case with:
+mcs -r:System.Data -r:System.Windows.Forms -r:System.Drawing Form1.cs
+2. Run with mono Form1.cs
+3. Watch it botch
+Actual Results:
+Program crashes immediately
+Expected Results:
+Program comes up with one tab page loaded as one was removed.
+How often does this happen? 
+Every time

More information about the mono-bugs mailing list