strange exception (Full Version)

All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Tech Support



Message


feelotraveller -> strange exception (12/7/2011 11:32:16 AM)

I wouldn't call this a bug but take it as a report on something strange happening under exceptional circumstances.

I start a game in a custom theme and, after saving, exit to change theme. (My custom theme at the moment just adds one character at startup, otherwise is exact replica of default. Works a treat too. [:)] ) I load this save up in the default theme and then load in my pre-saved ship designs. Next I go to multi-delete all stock designs from the new game which have no examples built [sm=happy0065.gif]. After control clicking all these I hit delete designs and I get an exception error (below). If I click continue they appear not to have deleted (still displayed in screen list) until I play with the drop down display box in the upper left and then it is clear that they have deleted. It would appear that I can keep playing normally after this although I can't confirm that. This is repeatable behaviour. Probably my fault for stuffing around like this but here's the report (truncated):


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
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 DistantWorlds.Controls.DesignListView.get_SelectedDesign()
at DistantWorlds.Main.RwuNVmpV9g(Object , EventArgs )
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DistantWorlds.Controls.ListViewBase._Grid_SelectionChanged(Object sender, EventArgs e)
at System.Windows.Forms.DataGridView.OnSelectionChanged(EventArgs e)
at System.Windows.Forms.DataGridView.FlushSelectionChanged()
at System.Windows.Forms.DataGridView.set_NoSelectionChangeCount(Int32 value)
at System.Windows.Forms.DataGridView.SetSelectedRowCoreInternal(Int32 rowIndex, Boolean selected)
at System.Windows.Forms.DataGridViewBand.set_Selected(Boolean value)
at System.Windows.Forms.DataGridViewRow.set_Selected(Boolean value)
at DistantWorlds.Main.XncPHZzce2Ii1GdXwd4(Object , Boolean )
at DistantWorlds.Main.RYucsu6Wqa(Object , EventArgs )
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)


...




Wonder Dog -> RE: strange exception (12/8/2011 3:15:36 AM)

I get this error as well. It seems to happen if there are zero designs after the delete opperation.

To cause this error Just delete all designs.

You do need to delete all ships and bases as you can't delete designs in use.

I get this error when I want to make changes to saved ship designs




feelotraveller -> RE: strange exception (12/8/2011 5:19:54 AM)

A third way to generate this error is to add a base (probably ship as well but haven't tried that) via the editor. Then load your ship designs and multi-delete all stock designs not in use. At least it looks like the same error message.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.9219971