See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.AggregateException: One or more errors occurred. (Index and length must refer to a location within the string. (Parameter 'length')) ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') at System.String.Substring(Int32 startIndex, Int32 length) at WITPDay.Form1.<>c__DisplayClass20_0.b__0(Int32 i) at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body) at WITPDay.Form1.LoadHistory(String path, Int32 side) at WITPDay.Form1.button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 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.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** System.Private.CoreLib Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Private.CoreLib.dll ---------------------------------------- WITPDay Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///D:/War%20in%20the%20Pacfic%20Admirals%20Edition/PBEM%20xargun%20400%20point%20scen%202/tools/WITPDayReporter/WITPDay.dll ---------------------------------------- System.Runtime Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Runtime.dll ---------------------------------------- System.Windows.Forms Assembly Version: 6.0.2.0 Win32 Version: 6.0.722.32203 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/System.Windows.Forms.dll ---------------------------------------- System.ComponentModel.Primitives Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.ComponentModel.Primitives.dll ---------------------------------------- System.Windows.Forms.Primitives Assembly Version: 6.0.2.0 Win32 Version: 6.0.722.32203 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/System.Windows.Forms.Primitives.dll ---------------------------------------- System.Runtime.InteropServices Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Runtime.InteropServices.dll ---------------------------------------- System.Drawing.Primitives Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Drawing.Primitives.dll ---------------------------------------- System.Collections.Specialized Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Collections.Specialized.dll ---------------------------------------- System.Threading Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Threading.dll ---------------------------------------- System.Diagnostics.TraceSource Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Diagnostics.TraceSource.dll ---------------------------------------- System.Collections Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Collections.dll ---------------------------------------- System.Drawing.Common Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/System.Drawing.Common.dll ---------------------------------------- Microsoft.Win32.Primitives Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/Microsoft.Win32.Primitives.dll ---------------------------------------- System.ComponentModel.EventBasedAsync Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.ComponentModel.EventBasedAsync.dll ---------------------------------------- System.Threading.Thread Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Threading.Thread.dll ---------------------------------------- Accessibility Assembly Version: 4.0.0.0 Win32 Version: 6.0.722.32203 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/Accessibility.dll ---------------------------------------- System.ComponentModel.TypeConverter Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.ComponentModel.TypeConverter.dll ---------------------------------------- System.Numerics.Vectors Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Numerics.Vectors.dll ---------------------------------------- System.Memory Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Memory.dll ---------------------------------------- System.ComponentModel Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.ComponentModel.dll ---------------------------------------- System.Resources.Extensions Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/System.Resources.Extensions.dll ---------------------------------------- System.Drawing Assembly Version: 6.0.2.0 Win32 Version: 6.0.722.32203 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/System.Drawing.dll ---------------------------------------- System.ObjectModel Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.ObjectModel.dll ---------------------------------------- System.Linq Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Linq.dll ---------------------------------------- Microsoft.Win32.SystemEvents Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/6.0.7/Microsoft.Win32.SystemEvents.dll ---------------------------------------- System.Private.Uri Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Private.Uri.dll ---------------------------------------- System.Collections.NonGeneric Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Collections.NonGeneric.dll ---------------------------------------- System.Runtime.CompilerServices.Unsafe Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Runtime.CompilerServices.Unsafe.dll ---------------------------------------- System.Collections.Concurrent Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Collections.Concurrent.dll ---------------------------------------- System.Threading.Tasks.Parallel Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Threading.Tasks.Parallel.dll ---------------------------------------- System.Diagnostics.Tracing Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Diagnostics.Tracing.dll ---------------------------------------- System.Runtime.Loader Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Runtime.Loader.dll ---------------------------------------- System.Diagnostics.StackTrace Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Diagnostics.StackTrace.dll ---------------------------------------- System.Reflection.Metadata Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Reflection.Metadata.dll ---------------------------------------- System.Collections.Immutable Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Collections.Immutable.dll ---------------------------------------- System.Diagnostics.FileVersionInfo Assembly Version: 6.0.0.0 Win32 Version: 6.0.722.32202 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/6.0.7/System.Diagnostics.FileVersionInfo.dll ---------------------------------------- ************** JIT Debugging **************