https://bugzilla.novell.com/show_bug.cgi?id=637177
https://bugzilla.novell.com/show_bug.cgi?id=637177#c0 Summary: InvalidOperationException in ToolStrip painting Classification: Mono Product: Mono: Class Libraries Version: 2.4.x Platform: x86 OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Windows.Forms AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 The following exception occurs, apparently when trying to paint a toolstrip. In the right circumstances, it happens very frequently, or even every time: System.InvalidOperationException: List has changed. at System.Collections.ArrayList+SimpleEnumerator.MoveNext () [0x00000] at System.Windows.Forms.ToolStrip.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000] at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] at System.Windows.Forms.StatusStrip.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] Reproducible: Sometimes Steps to Reproduce: This happens most frequently on a slow machine. I can reproduce it every time on a 750MHz Pentium III. It happens hardly ever on a 'modern' machine. 1. Run a WinForms app that has a menu (ToolStrip) 2. Use the mouse to select an item from the menu (In my test case, &Volume->Ma&x). No problem. 3. Do the same, but using the keyboard (i.e. Alt-V, then X - result: crash of application (nothing I can do to catch this either), with the exception message thrown above. The application isn't doing anything 'odd' or unusual. It's just a standard toolstrip. (And it's never modified at runtime). This never happens running the same binary under .NET. -- Configure bugmail: https://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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
