We have a grid with grouped totals enabled, and occasionally (perhaps once every few days) one of our users gets the below exception thrown. The stack trace indicates a possible bug in the CalcEngine code. Any assistance on understanding and helping solve this issue will be appreciated. Thanks.
Message: Index was outside the bounds of the array.
Type: System.IndexOutOfRangeException
Source: mscorlib
TargetSite: Void Insert(TKey, TValue, Boolean)
StackTrace: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Infragistics.Win.CalcEngine.UCRecalcChain.HSparseArray.SetOwnerData(Object item, Object ownerData)
at Infragistics.Shared.SparseArray.InsertRange(Int32 index, ICollection items)
at Infragistics.Shared.SparseArray.Sort(IComparer comparer)
at Infragistics.Win.CalcEngine.UltraCalcEngine.TopologicalSort()
at Infragistics.Win.CalcEngine.UltraCalcEngine.ClearDirtyChainAndDoTopologicalSort(Boolean isStartOfRecalcOperation)
at Infragistics.Win.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks, Boolean isStartOfRecalcOperation)
at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.ReCalcInternal(Int64 ticks)
at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.ReCalc(Int64 millis)
at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.onTimerTick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hi,
What version of the controls are you using?
I recommend getting the latest service release. There were a couple of bugs in the controls that could cause an exception like this which have been fixed in the past couple of years.
How to get the latest service release - Infragistics Community
2011.2 release - so 1 version out of date. We're currently in the process of renewing our license in order to obtain access to the latest version. Do you think this will help?