I was editing a class diagram and attempted to make an operation abstract (via the Properties dialog of the class).
I got the following exception and stack trace:
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Column index is out of range.
at System.Windows.Forms.DataGridView.InvalidateCell (Int32 columnIndex, Int32 rowIndex) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridView.InvalidateCell (System.Windows.Forms.DataGridViewCell dataGridViewCell) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.DataGridView:InvalidateCell (System.Windows.Forms.DataGridViewCell)
at System.Windows.Forms.DataGridViewCell.SetValue (Int32 rowIndex, System.Object value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridViewCell.set_Value (System.Object value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridViewRow.SetValues (System.Object[] values) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridViewRowCollection.Add (System.Object[] values) [0x00000] in <filename unknown>:0
at SoftwareIdeasModeler.Dialogs.Properties.UmlOperationEditorForm.BindData () [0x00000] in <filename unknown>:0
at SoftwareIdeasModeler.Dialogs.Properties.UmlOperationEditorForm..ctor (SoftwareIdeasModeler.Core.Projecting.Project project, SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.UmlOperation operation) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) SoftwareIdeasModeler.Dialogs.Properties.UmlOperationEditorForm:.ctor (SoftwareIdeasModeler.Core.Projecting.Project,SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.UmlOperation)
at SoftwareIdeasModeler.Dialogs.Properties.ClassDefinitionControl.editButton_Click (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
Not a big deal (as I have access to Windows), but I thought you may want to know about it anyway. :)
Reply To: ArgumentOutOfRangeException under Linux
Hello DuĊĦan,
I was editing a class diagram and attempted to make an operation abstract (via the Properties dialog of the class).
I got the following exception and stack trace:
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Column index is out of range.
at System.Windows.Forms.DataGridView.InvalidateCell (Int32 columnIndex, Int32 rowIndex) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridView.InvalidateCell (System.Windows.Forms.DataGridViewCell dataGridViewCell) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.DataGridView:InvalidateCell (System.Windows.Forms.DataGridViewCell)
at System.Windows.Forms.DataGridViewCell.SetValue (Int32 rowIndex, System.Object value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridViewCell.set_Value (System.Object value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridViewRow.SetValues (System.Object[] values) [0x00000] in <filename unknown>:0
at System.Windows.Forms.DataGridViewRowCollection.Add (System.Object[] values) [0x00000] in <filename unknown>:0
at SoftwareIdeasModeler.Dialogs.Properties.UmlOperationEditorForm.BindData () [0x00000] in <filename unknown>:0
at SoftwareIdeasModeler.Dialogs.Properties.UmlOperationEditorForm..ctor (SoftwareIdeasModeler.Core.Projecting.Project project, SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.UmlOperation operation) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) SoftwareIdeasModeler.Dialogs.Properties.UmlOperationEditorForm:.ctor (SoftwareIdeasModeler.Core.Projecting.Project,SoftwareIdeasModeler.Core.DiagramItems.UmlObjects.UmlOperation)
at SoftwareIdeasModeler.Dialogs.Properties.ClassDefinitionControl.editButton_Click (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
Not a big deal (as I have access to Windows), but I thought you may want to know about it anyway. :)
Jyrki 24 September 2011 9:01:32