InvokeRemotely Error
Posted: Fri Jun 17, 2011 12:02 pm
Hiya
Im automating a Dev Express XtraGrid
When the grid is displayed in the AUT, a background thread is kicked off to populate it
From automation point of view I have to wait for this background thread (which is loading from a database) to finish. So what i did was write a delegate method to invoke remotely, that simply loops waiting for no more rows. However when i call this method i get this error:
Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:fTradeGrid}'. ---> System.InvalidOperationException: The control does no longer exist. at Ranorex.Plugin.WinFormsFlavorElement.InvokeMethod(BindingFlags flags, String name, Object[] args) at Ranorex.Plugin.WinFormsFlavorElement.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData) at Ranorex.Plugin.WinFormsFlavorElement.InvokeAction(Element element, String name, Object[] args) at Ranorex.Core.Element.InvokeAction(String name, Object[] args) --- End of inner exception stack trace --- at Ranorex.Core.Element.InvokeAction(String name, Object[] args) at Ranorex.Control.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData) at SophisGUIAutoRanorex.Controls.Grid.DevExpress.DEXtraGrid.WaitForNoMoreRows(Int32 TimeOutSecs)
The control does definitely exist because I invoked remotely another method on it prior to this one.
Any clues?
Im automating a Dev Express XtraGrid
When the grid is displayed in the AUT, a background thread is kicked off to populate it
From automation point of view I have to wait for this background thread (which is loading from a database) to finish. So what i did was write a delegate method to invoke remotely, that simply loops waiting for no more rows. However when i call this method i get this error:
Ranorex.ActionFailedException: Action 'invokeremotely' failed on element '{Unknown:fTradeGrid}'. ---> System.InvalidOperationException: The control does no longer exist. at Ranorex.Plugin.WinFormsFlavorElement.InvokeMethod(BindingFlags flags, String name, Object[] args) at Ranorex.Plugin.WinFormsFlavorElement.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData) at Ranorex.Plugin.WinFormsFlavorElement.InvokeAction(Element element, String name, Object[] args) at Ranorex.Core.Element.InvokeAction(String name, Object[] args) --- End of inner exception stack trace --- at Ranorex.Core.Element.InvokeAction(String name, Object[] args) at Ranorex.Control.InvokeRemotely(RemotelyInvokedDelegate deleg, Object inputData) at SophisGUIAutoRanorex.Controls.Grid.DevExpress.DEXtraGrid.WaitForNoMoreRows(Int32 TimeOutSecs)
The control does definitely exist because I invoked remotely another method on it prior to this one.
Any clues?