LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
tstanley

Improved functionality for duplicate application instances

Status: New

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!