08-30-2021 01:02 PM
I've got a problem when exiting NI-Teststand from my .NET App.
Teststand is called from a form inside a thread. When I need to close the form (after sequence execution), I do :
PropertyObject Obj = _engine.NewPropertyObject(PropertyValueTypes.PropValType_Container, false, "", 0);
Obj.SetValBoolean("logoutOnly", 0x1, true);
bool bRep = _appMgr.Shutdown();
When done, I've got an UI Message UIMsg_ShutDownComplete (which is good, I believe). Therefore, I'm ending closing the App :
while (_appMgr.Executing == true)
while (_appMgr.SequenceFiles.Count != 0)
_appMgr = null;
_engine = null;
_sequence = null;
_execution = null;
Despite all this, I still have the attached message : "Application can not shutdown because you have incomplete executions". This baffle me alot.
Could someone give me an explaination (and maybe a solution ?)
Solved! Go to Solution.
09-02-2021 10:44 AM
The are 2 shutdown stages for TS Engine!
This article sheds light on how it should be done:
Shutting Down the Engine - TestStand 2019 Help - National Instruments (ni.com)