I've been trying to write a module manager for an application i'm building. The idea is that the user decides what modules to run and then these modules are managed using the VI server. Their refernces are stored in an array and if the user wants to change what modules are running, then the module manger should shutdown or start the VI's.
This seems to work fine if you place the manager VI on the block diagram of the calling VI but if you call the VI using the VI server then somehow the references to the running modules become invalid.
I have attached a basic version of the system. If you run the 'CALL from diagram' VI the system works fine but if you run the 'CALL by reference' VI, it all goes horribly wrong.
The reason I want to call by refernce is that I don't want the calling VI to have to wait until the user has decided what modules to run before it can continue.
Please help, I don't know where to go from here.
Download File:post-2342-1121338478.zip