NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Inexplicable time limit exceeded message

Solved!
Go to solution

I am getting an inexplicable Time Limit Exceeded message box popping up.

 

In my UI I have a testing form containing the AppManager and ExecutionViewManager controls. In the FormClosing event handler, I make the following VB.NET 2008 calls:

 

        AppMgr.GetEngine.TerminateAll()
        AppMgr.GetEngine.UnloadAllModules()
        AppMgr.CloseAllSequenceFiles()
        AppMgr.CloseAllExecutions()
        AppMgr.Shutdown()
        While ExecViewMgr.RunState <> ExecutionRunStates.ExecRunState_Stopped
            System.Windows.Forms.Application.DoEvents()
        End While

 

After this, I get the Time Limit Exceeded message box appearing. It references my process model file SequenceFileLoad callback but there is nothing in it. I am at a loss as to what is causing this. Is there something else I need to call to truly close things out.

 

 

 

0 Kudos
Message 1 of 3
(3,976 Views)

Hi Skeptical,

1. Are you using any multithreading in the interface?  It can happen that one thread is still running or is hung while all the rest of the threads are done

2.  Can you run the same process model and sequence file in the TestStand Sequence Editor or one of the default operator interfaces that ships with TestStand?

3. What customizations have you done to the OI and process model?  


Mark E.
National Instruments

0 Kudos
Message 2 of 3
(3,930 Views)
Solution
Accepted by topic author Skeptical
I think I have solved that problem by checking the return value of ApplicationManager.Shutdown and if it is False, then waiting for the ExitApplication event.
0 Kudos
Message 3 of 3
(3,897 Views)