06-16-2017 08:26 AM
Hi Trent,
Thanks for the reply, but I did check the return value of the function call and they all returned 0.
The issue that I found out was that when i restarted the program, the tasks were actually not initialized and started.
So, I suppose a TestStand program is supposed to be able to restart without unloading modules every time. If there's an issue then that means it did not or clean up properly?
06-16-2017 01:22 PM
The issue that I found out was that when i restarted the program, the tasks were actually not initialized and started.
You should be able to use the same technique to check the return values from the initialize function and see why it's not initialized.
So, I suppose a TestStand program is supposed to be able to restart without unloading modules every time. If there's an issue then that means it did not or clean up properly?
It depends what you mean by "restart". If you mean closing and opening the application or sequence file, everything will be unloaded automatically. If you mean restarting an execution, it depends on a few things:
Everything you described in your first post is typical - besides the call to unload all modules.
There should be no need to unload all modules unless you need that memory for something else, or you need to edit and recompile the code modules.