[Mono-bugs] [Bug 613765] New: Removing last Selected Tab from TabControl causes crash.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 11 18:36:51 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=613765

http://bugzilla.novell.com/show_bug.cgi?id=613765#c0


           Summary: Removing last Selected Tab from TabControl causes
                    crash.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=368810)
 --> (http://bugzilla.novell.com/attachment.cgi?id=368810)
test to show crash went removing last tab which is selected

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5
(KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5

See attached test case.

Reproducible: Always

Steps to Reproduce:
1. Compile and run Test case
2. Click on 'Click me to crash' button, without changing tabs.

Actual Results:  
Remove
System.ArgumentOutOfRangeException: ControlCollection does not have that many
controls
Parameter name: index
1
  at System.Windows.Forms.Control+ControlCollection.get_Item (Int32 index)
[0x00000] 
  at System.Windows.Forms.TabControl.GetTab (Int32 index) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.TabControl:GetTab (int)
  at System.Windows.Forms.TabControl+TabPageCollection.get_Item (Int32 index)
[0x00000] 
  at System.Windows.Forms.TabControl.get_SelectedTab () [0x00000] 
  at System.Windows.Forms.TabControl.set_SelectedIndex (Int32 value) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.TabControl:set_SelectedIndex (int)
  at System.Windows.Forms.TabControl+ControlCollection.Remove
(System.Windows.Forms.Control value) [0x00000] 
  at RemovingSelectedTabTest.MainClass+<Main>c__AnonStorey0.<>m__0
(System.Object , System.EventArgs ) [0x0000a] in
/home/hindlet/src/p4/Calgary/Src/Common/CoreImpl/TestThreadStuff/RemovingSelectedTabTest.cs:28 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.ButtonBase.OnMouseUp
(System.Windows.Forms.MouseEventArgs mevent) [0x00000] 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs
mevent) [0x00000] 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000] 

Expected Results:  
Console should display:
Remove
HandleTSelected
HandleTSelectedIndexChanged

and the tab should be removed.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list