[Mono-bugs] [Bug 80977][Nor] New - ListView: ArgumentOutOfRangeException adding reordered columns

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 27 15:32:50 EST 2007


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 gert.driesen at pandora.be.

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

--- shadow/80977	2007-02-27 15:32:50.000000000 -0500
+++ shadow/80977.tmp.32179	2007-02-27 15:32:50.000000000 -0500
@@ -0,0 +1,98 @@
+Bug#: 80977
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ListView: ArgumentOutOfRangeException adding reordered columns
+
+If you reordering columns, clear the ListView and add the columns again 
+then the following exception is thrown:
+
+System.ArgumentOutOfRangeException: Argument is out of range.
+Parameter name: index
+  at System.Windows.Forms.ListView+ColumnHeaderCollection.get_Item (Int32 
+index) [0x00035] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:3207 
+  at System.Windows.Forms.ListView.GetReorderedColumn (Int32 index) 
+[0x00019] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:1033 
+  at System.Windows.Forms.ListView.LayoutHeader () [0x00009] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:1208 
+  at System.Windows.Forms.ListView.LayoutDetails () [0x00029] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:1236 
+  at System.Windows.Forms.ListView.CalculateListView (ListViewAlignment 
+align) [0x00039] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:1280 
+  at System.Windows.Forms.ListView.Redraw (Boolean recalculate) [0x00012] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:793 
+  at (wrapper remoting-invoke-with-check) 
+System.Windows.Forms.ListView:Redraw (bool)
+  at System.Windows.Forms.ListView+ColumnHeaderCollection.Add 
+(System.Windows.Forms.ColumnHeader value) [0x00029] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ListView.cs:3247 
+  at MainForm.Init () [0x00000] 
+  at MainForm.ResetButton_Click (System.Object sender, System.EventArgs e) 
+[0x00000] 
+  at (wrapper delegate-invoke) 
+System.MulticastDelegate:invoke_void_object_EventArgs 
+(object,System.EventArgs)
+  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0001c] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:4890 
+  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00025] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Button.cs:103 
+  at System.Windows.Forms.ButtonBase.OnMouseUp 
+(System.Windows.Forms.MouseEventArgs mevent) [0x000a7] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ButtonBase.cs:476 
+  at System.Windows.Forms.Button.OnMouseUp 
+(System.Windows.Forms.MouseEventArgs e) [0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Button.cs:107 
+  at System.Windows.Forms.Control.WmLButtonUp 
+(System.Windows.Forms.Message& m) [0x0005c] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:4578 
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& 
+m) [0x00144] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:4359 
+  at System.Windows.Forms.ButtonBase.WndProc 
+(System.Windows.Forms.Message& m) [0x00055] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ButtonBase.cs:530 
+  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) 
+[0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Button.cs:120 
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc 
+(System.Windows.Forms.Message& m) [0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:196 
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, 
+IntPtr wParam, IntPtr lParam) [0x0006b] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/NativeWindow.cs:171 
+
+To reproduce:
+1. compile the attached code snippet.
+2. follow the on-screen instructions.


More information about the mono-bugs mailing list