ArgumentOutOfRangeException in SaveLocationVisited

Issue #47 resolved
Rainer Hilmer repo owner created an issue

Error during Tick in script 'PTS.Core': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> 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() at System.Collections.Generic.List`1.set_Item(Int32 index, T value) at PTS.JobElements.SaveLocationVisited(Location location) at PTS.JobElements.CustomerPickup() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at PTS.StateBroker.RunJob(ServiceState state) at PTS.Core.OnTick(Object sender, EventArgs e) at GTA.Script.TryTick() at GTA.Script.DoTick() at GTA.ScriptThread.OnTick()

Comments (2)

  1. Log in to comment