LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting multiple instances of an application

Hi,
I would like to be able and determine if another instance of my application is already running, preferably in a cross-platform manner, although a windows only solution will do if necissarry. One Idea that I had was to create a lock file when the program started and then delete it when the program ends, however if something weird happens and the lock file is not deleted it could cause some very confusing behavior for the user. Any other ideas?
0 Kudos
Message 1 of 3
(2,648 Views)
Yes, we provide a function for this in our Utility library. It's called CheckForDuplicateAppInstance and it's in the Utility library under Miscellaneous.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 3
(2,648 Views)
Ah, cool thats easy. thank you.
jackson
0 Kudos
Message 3 of 3
(2,648 Views)