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?