09-04-2008 08:54 AM - edited 09-04-2008 09:03 AM
How can I find (dynamically started) clones in memory?
In the developement enviroment they can be shown manually using View --> Browse Relationsship --> Unopened SubVIs
But I find no function or property/invoke node to do that in my application.
How we start the clones:
09-04-2008 12:00 PM
This might help you.
I'm not sure what you mean by your application "crashing" since if the process actually crashed, the VIs would stop running as well. I assume you're talking about something that stops your code internally. Other than the fact that this is bad design in general (you should have proper error handling and usually only stop an application at a user's request), there is also something else you can do - write a small VI which will hold an array of the VI references. Whenever you open a VI, add its reference to the array. Then, you can simply close all the references in that array.
Again, note that this is a bad way of doing this - ideally, you would want to send a command to each VI to stop itself. You can do this by using something like a global variable or a notifier.