error message (#242)

When I add an object to my model, I sometimes get error messages, which I can 'ignore' or let SIM crash. Obviously I choose to ignore this, but it still lets me in doubt whether there are no side effects in the background. Can you enlighten me?

Here is the latest error message, when I added a decision to an activity diagram, without naming it.

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeException()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at SoftwareIdeasModeler.Core.Commands.AdjustRectangularPointsCommand.SetPoints(List`1 points)

at SoftwareIdeasModeler.Core.Commands.AdjustRectangularPointsCommand.Execute()

at SoftwareIdeasModeler.Core.Commands.CombinedCommand.Execute()

at SoftwareIdeasModeler.DiagramTools.SelectionTool.ChangeBounds(EnhancedMouseEventArgs e, Boolean finalPosition)

at SoftwareIdeasModeler.DiagramTools.SelectionTool.MouseMove(EnhancedMouseEventArgs e)

at SoftwareIdeasModeler.SimDiagramControl.canvas_MouseMove(Object sender, MouseEventArgs e)

at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseMove(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ContainerControl.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Created
7 June 2013 8:57:55
Closed
10 June 2013 0:10:50
Requested by
Otto Christiaanse
State
Solved
Version
6.16.4892.38506
OperatingSystem
Win XP
Solved in
6.20

Otto Christiaanse 7 June 2013 9:13:57

And again, after adding an Control flow arrow, I clicked outside the box in the swimlane where I put the arrow. This is repeatable time after time.

Dusan Rodina - softwareideas.net 7 June 2013 12:15:35

Please, let me know, whether this bug persists in version 6.17 for you.

Otto Christiaanse 8 June 2013 8:15:31

Can't reproduce it. A similar error occures at other places and times.

It seems to me, that when this error occures once, it will keep reoccuring after it, until I close the application and restart it.

Now (if I'm correct reproducing it) I edited a comment box without problems, moved the view, edited it again, move cursor to the beginning, press enter: error. Looks like it doesn't like to get an 'enter' anymore as first character in a comment box? At the end of the text it isn't a problem.

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: startIndex

at System.String.LastIndexOf(Char value, Int32 startIndex, Int32 count)

at SoftwareIdeasModeler.SimDiagramControl.valueTextBox_KeyPress(Object sender, KeyPressEventArgs e)

at System.Windows.Forms.Control.OnKeyPress(KeyPressEventArgs e)

at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)

at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)

at System.Windows.Forms.Control.WmKeyChar(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.TextBoxBase.WndProc(Message& m)

at System.Windows.Forms.TextBox.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

TrackedRequestComment
Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]