NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Shutdown() causes a StartExecution event and an EndExecution event

Solved!
Go to solution

When my application is terminating it calls the following code from my Form Closing callback:

    if (this.axApplicationMgr.Shutdown() == false)

    {

        e.Cancel = true;

    }

    else

    {

        ...

    }

 

But before the ExitApplication event occurs, a StartExecution event and an EndExecution event occur.  Where are these extraneous events coming from and how can I get rid of them?

0 Kudos
Message 1 of 4
(3,228 Views)

It's probably of the LoginLogout sequence in FrontEndCallbacks.seq performing a logout.

 

Since the event has a reference to the execution, grab it and call Execution.GetSequenceFile() to see.

Message Edited by asbo on 06-17-2010 11:00 AM
Message 2 of 4
(3,226 Views)

Yes both events are indeed from LoginLogout in FrontEndCallbacks.

 

Ok, so these events are part of the normal function of shutting down and they are not anything I should be concerned about, right?

0 Kudos
Message 3 of 4
(3,217 Views)
Solution
Accepted by topic author tlaford
This is normal.
0 Kudos
Message 4 of 4
(3,203 Views)