Jan-13-2023, 07:31 AM
Hi,
I have an executable. Users click on it (or an icon) and do research.
One user however starts inadvertently many instances of the exe,
and one particular feature can cause a crash, if used.
Google proposes some solutions, question is, what is the most recommended?
eg. :
Use a "lock" file: but I can imagine that if the computer
crashes for another reason, or is switched off, the lock file is still there, causing trouble?
Use something like tendo.singleton...?
...?
thx,
Paul
I have an executable. Users click on it (or an icon) and do research.
One user however starts inadvertently many instances of the exe,
and one particular feature can cause a crash, if used.
Google proposes some solutions, question is, what is the most recommended?
eg. :
Use a "lock" file: but I can imagine that if the computer
crashes for another reason, or is switched off, the lock file is still there, causing trouble?
Use something like tendo.singleton...?
...?
thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.