Hi,
CVI already has a way to check for duplicate instances of an application through CheckForDuplicateAppInstance(..). My suggestion would be to extend this functionality so that the duplicate application instance could send a message to the original application instance. This is common for when the programmer wants to pass the command line arguments from the duplicate instance to the original instance (before exiting) so that the original instance can act on them. Normally this is done through some inter-process communication protocol like DDE, but there's an opportunity to simplify this for the programmer. Probably the easiest implementation would be an application-level callback that will be called when the duplicate instance is started, which would accept a pointer to some data that could be set by the second instance.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.