Posted 21 November 2017, 3:16 pm EST
We have an application with multiple C1 components, mostly FlexGrids. One page loads C1.WPF.Automation.4.dll when the form is moved. After that happens the application will crash with the stack trace below wjen we perform a certain sequence of sorting and filtering. If we remove the C1.WPF.Automation.4.dll the problem goes away.
-
What would cause C1.WPF.Automation.4.dll to load? We cannot find what is causing this to happen on one page and not others.
-
How can we debug the error? We must be doing something that the grid does not like but we can’t figure out what it is.
Version 4.0.20162.524
SOURCE: mscorlib ThrowArgumentOutOfRangeException
ERROR: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
MESSAGE:
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(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at CallSite.Target(Closure , CallSite , Object , Int32 )
at C1.WPF.Automation.C1FlexGridRowAutomationPeer…ctor(Object grid, Object panel, Int32 row)
at CallSite.Target(Closure , CallSite , Type , Object , Object , Int32 )
at C1.WPF.Automation.C1FlexGridPanelAutomationPeer.#oAg(Int32 #7p, Int32 #8p)
at C1.WPF.Automation.C1FlexGridPanelAutomationPeer.GetChildrenCore()
at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)