OK, I tried a clean reinstall. Good news is that the issue seems to not be occurring for now so frequently. It still happens, but it's a lot more manageable because my constructors don't immediately break down once I discover a debris field. Bad news is that clicking on the Design button will always generate this message:
"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit the application will close immediately.
Index was outside the bounds of the array"
The debug text says:
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DistantWorlds.Controls.DesignListView.BindData(Galaxy galaxy, DesignList designs, Bitmap builtObjectImages, Boolean allowMultiSelect)
at DistantWorlds.Main.method_307(Design design_3)
at DistantWorlds.Main.tbtnDesigns_Click(Object sender, EventArgs e)
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)
If I remove the text file for the specific race I'm playing from the designTemplates folder, then things seem to be running OK, and the AI seems to be doing fine with ship designs too (so the files for the AI don't seem to be causing a problem, so it's something to do with me clicking on the Design menu button).
Sorry for pestering you about these things. I'm not expecting a fix or anything. Just wanting to let you know possible bugs and issues.
< Message edited by OrnluWolfjarl -- 10/23/2017 10:48:23 PM >