Error during Dialog Handling.

2 posts, 0 answers
  1. Eric
    Eric avatar
    4 posts
    Member since:
    Sep 2010

    Posted 23 May 2011 Link to this post

    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;)

    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()

  2. Stoich
    Stoich avatar
    1 posts

    Posted 26 May 2011 Link to this post

    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.

    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
Back to Top