[Mono-bugs] [Bug 78198][Wis] New - TabControl.ClearPages() fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 25 18:06:18 EDT 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.

http://bugzilla.ximian.com/show_bug.cgi?id=78198

--- shadow/78198	2006-04-25 18:06:18.000000000 -0400
+++ shadow/78198.tmp.21145	2006-04-25 18:06:18.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 78198
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Centos 4.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: eric at rengeo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TabControl.ClearPages() fails
+
+Description of Problem:
+
+When using TabControl.ClearPages(), it throws the exception:
+
+Unhandled Exception: System.ArgumentOutOfRangeException: ControlCollection
+does not have that many controls
+Parameter name: index
+-1
+in <0x0010a> System.Windows.Forms.Control+ControlCollection:get_Item (Int32
+index)
+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 <0x000da> System.Windows.Forms.TabControl:set_SelectedIndex (Int32 value)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.TabControl:set_SelectedIndex (int)
+in <0x00129> System.Windows.Forms.TabControl+ControlCollection:Remove
+(System.Windows.Forms.Control value)
+in <0x000b0> System.Windows.Forms.Control+ControlCollection:RemoveAt (Int32
+index)
+in <0x00033> System.Windows.Forms.Control+ControlCollection:Clear ()
+in <0x0002b> MONO_testApp.Form1:.ctor ()
+in (wrapper remoting-invoke-with-check) MONO_testApp.Form1:.ctor ()
+in <0x0001b> MONO_testApp.Form1:Main ()
+
+Steps to reproduce the problem:
+1. Compile attached test case with: 
+mcs -r:System.Drawing -r:System.Data -r:System.Windows.Forms ClearTabPages.cs
+2. Run with:
+mono ClearTabPages.exe
+3. Watch it botch
+
+Actual Results:
+throws the above mentioned exception
+
+
+Expected Results:
+Should clear the pages and come up with a blank tab control
+
+
+How often does this happen? 
+every time
+
+
+Additional Information:
+Mono version 1.1.15
+or
+Mono SVN r59821


More information about the mono-bugs mailing list