Take care,
Zac
2024-08-01 15:36:28:530 *************** unhandled exception trapped ***************
2024-08-01 15:36:28:530 Failed to compare two elements in the array.
2024-08-01 15:36:28:530 Object reference not set to an instance of an object.
2024-08-01 15:36:28:531 System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.Cbi.InstrumentList.<>c.<DbLoad>b__14_0 (Instrument a, Instrument b)
at System.Collections.Generic.ArraySortHelper`1.SwapI fGreater(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
at System.Collections.Generic.ArraySortHelper`1.Depth LimitedQuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer, Int32 depthLimit)
at System.Collections.Generic.ArraySortHelper`1.Sort( T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort( T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
at System.Collections.Generic.List`1.Sort(Comparison` 1 comparison)
at NinjaTrader.Cbi.InstrumentList.DbLoad()
at NinjaTrader.Cbi.InstrumentList.get_All()
at NinjaTrader.Gui.Data.DatabaseManager.<>c__DisplayC lass41_0.<UpdateListsRollovers>b__0(Object _)
at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System. Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

Comment