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

Error during Dialog Handling.

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 23 May 2011, 07:57 PM
Hello, 
 
In the most recent build 2011.1.502 I seem to be getting this error on our Script Execution machines (Running the Visual Studio Test Agents) whenever a Dialog appears. This is causes the Agent process to stop. I've attached the TRX file that logged the Run.

The DialogMonitor is currently set  to (settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;)

Error:
Exception: NullReferenceException
Message: Object reference not set to an instance of an object.
Stack Trace:
   at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleUnexpectedDialog(Window dialogWindow)
   at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleDialog(Window dialogWindow)
   at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.AutomationEvent_OnWindowOpened(Object sender, WindowEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.OnWindowOpened(Window window)
   at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.HandleAutomationEvent(Object sender, AutomationEventArgs e)
   at MS.Internal.Automation.InvokeHandlers.InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
   at MS.Internal.Automation.ClientSideQueueItem.Process()
   at MS.Internal.Automation.QueueProcessor.DrainQueue()
   at MS.Internal.Automation.QueueProcessor.WaitForWork()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()






1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 26 May 2011, 12:34 PM
Hi Eric,
    try upgrading the the latest internal release 1520. You can download it from your Telerik account. Also please paste the code you use to handle the dialog and which is (presumably) throwing the NullReferenceException.
I'm no sure how to open the file you attached in your last post.

Greetings,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Eric
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or