[Mono-bugs] [Bug 607545] New: Context Menu Strip throws InvalidOperationException on svn Trunk

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 20 11:16:47 EDT 2010


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

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


           Summary: Context Menu Strip throws InvalidOperationException on
                    svn Trunk
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          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=363558)
 --> (http://bugzilla.novell.com/attachment.cgi?id=363558)
Test case that shows "System.InvalidOperationException: List has changed."
exception

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

unstable with mono svn r152577
stable with mono 2.4.2.3

System.InvalidOperationException: List has changed.
  at System.Collections.ArrayList+SimpleEnumerator.MoveNext () [0x00000] in
<filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDownMenu.OnLayout
(System.Windows.Forms.LayoutEventArgs e) [0x00051] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownMenu.cs:117 
  at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control
affectedControl, System.String affectedProperty) [0x00066] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4080 
  at System.Windows.Forms.Control.PerformLayout () [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4057 
  at System.Windows.Forms.ToolStrip.OnItemAdded
(System.Windows.Forms.ToolStripItemEventArgs e) [0x00033] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs:806 
  at System.Windows.Forms.ToolStripItemCollection.Add
(System.Windows.Forms.ToolStripItem value) [0x00056] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemCollection.cs:118 
  at System.Windows.Forms.ToolStripItemCollection.Add (System.String text)
[0x0000f] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemCollection.cs:101 
  at LargeContextMenuTest.MyForm.OpenLargeContextMenu (System.Object sender,
System.ComponentModel.CancelEventArgs e) [0x00017] in
/home/hindlet/Projects/ComboBoxTest/ComboBoxTest/Main.cs:27 
  at System.Windows.Forms.ToolStripDropDown.OnOpening
(System.ComponentModel.CancelEventArgs e) [0x0001c] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:644 
  at System.Windows.Forms.ToolStripDropDown.Show (Point position,
ToolStripDropDownDirection direction) [0x00313] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:499 
  at System.Windows.Forms.ToolStripDropDown.Show (System.Windows.Forms.Control
control, Point position) [0x00023] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:395 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ToolStripDropDown:Show
(System.Windows.Forms.Control,System.Drawing.Point)
  at System.Windows.Forms.Control.WmContextMenu (System.Windows.Forms.Message&
m) [0x0013b] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5742 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x001c3] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5367 
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:807 
  at System.Windows.Forms.ContainerControl.WndProc
(System.Windows.Forms.Message& m) [0x0003c] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:711 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
[0x00165] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2613 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242

Reproducible: Always

Steps to Reproduce:
1. Compile and Run Attached test case
2. Right click on Window a few times until Exception is thrown
3. 
Actual Results:  
System.InvalidOperationException: List has changed.
  at System.Collections.ArrayList+SimpleEnumerator.MoveNext () [0x00000] in
<filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDownMenu.OnLayout
(System.Windows.Forms.LayoutEventArgs e) [0x00051] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDownMenu.cs:117 
  at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control
affectedControl, System.String affectedProperty) [0x00066] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4080 
  at System.Windows.Forms.Control.PerformLayout () [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4057 
  at System.Windows.Forms.ToolStrip.OnItemAdded
(System.Windows.Forms.ToolStripItemEventArgs e) [0x00033] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs:806 
  at System.Windows.Forms.ToolStripItemCollection.Add
(System.Windows.Forms.ToolStripItem value) [0x00056] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemCollection.cs:118 
  at System.Windows.Forms.ToolStripItemCollection.Add (System.String text)
[0x0000f] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemCollection.cs:101 
  at LargeContextMenuTest.MyForm.OpenLargeContextMenu (System.Object sender,
System.ComponentModel.CancelEventArgs e) [0x00017] in
/home/hindlet/Projects/ComboBoxTest/ComboBoxTest/Main.cs:27 
  at System.Windows.Forms.ToolStripDropDown.OnOpening
(System.ComponentModel.CancelEventArgs e) [0x0001c] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:644 
  at System.Windows.Forms.ToolStripDropDown.Show (Point position,
ToolStripDropDownDirection direction) [0x00313] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:499 
  at System.Windows.Forms.ToolStripDropDown.Show (System.Windows.Forms.Control
control, Point position) [0x00023] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripDropDown.cs:395 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ToolStripDropDown:Show
(System.Windows.Forms.Control,System.Drawing.Point)
  at System.Windows.Forms.Control.WmContextMenu (System.Windows.Forms.Message&
m) [0x0013b] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5742 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x001c3] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5367 
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:807 
  at System.Windows.Forms.ContainerControl.WndProc
(System.Windows.Forms.Message& m) [0x0003c] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:711 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
[0x00165] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2613 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/home/hindlet/src/custom-mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242

Expected Results:  
No Exception

-- 
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