My application is installed on a network-drive. End-users can startup this application from their local computer using a shortcut. ** I don't want to allow multiple instances of my application to be started.
After user-A has started the application on local computer-1, it is not sufficient to check for a running instance of this application on local computer-2, because that instance will not be recognized on local computer-2 (as it is running locally on computer-1).
I've thought about creating a controle-file the moment the application is started by any user/local computer and delete this file after the application is closed again. But this might give some timing-problems when two users start the application at the same time.
How can I solve this problem in an easy but certain/secure way?