This is a migrated thread and some comments may be shown as answers.

AutomationPeer Exception

1 Answer 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tomer
Top achievements
Rank 1
Tomer asked on 09 Jul 2012, 05:18 PM
hello,

while running some CodedUI Tests on WPF Aplication who use Rad Gridview (2012 Q1)
Usual CodedUI Test (click on grid, click On Cells, Press Down...)
using VS2010
Windows XP.

suddenly i got this Exception from the Application itself (not the test!)

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generics.List'1.Enumerator.MoveNextRare()
at System.Collections.Generics.List'1.Enumerator.MoveNext() 
at
Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer.GeneratePeersForDataItems(List'1 newPeerList, AutomationPeerStorage'2 oldCachedPeers)
at
Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer.GetItemPeers()
at
Telerik.Windows.Controls.GridView.Automation.GridViewVirtualizingPanelAutomationPeer.GetChildrenCore()
at Telerik.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at Telerik.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.UpdateSubtree() 
  
at System.Windows.ContextLayOutManager.fireAutomationEvents()
at System.Windows.ContextLayOutManager.UpdateLayout() 
at System.Windows.ContextLayOutManager.UpdateLayoutCallBack(Object arg) 
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() 
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) 
at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)  
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object Args, Int32 numArgs, Delegate catchHandler)



can someone help..?
thanks in advance.





1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 10 Jul 2012, 09:02 AM
Hi Tomer,

Can you test your project with latest official version - Q2 2012? Are you getting the exception?
 
Regards,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Tomer
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or