![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

(N.B. Not really a forth question here, Windows really...)
I made my SwiftForth application run such that only one instance will
run. I used a named semaphore to do this. (App attempts to create a
semaphore immediately at run time and quits if the semaphore already
exists. If successful, the semaphore is kept active until the program
terminates, at which time it is released.). But this seems to me to be a
bad way to do it, because if for any reason the app should abort or
crash before a proper release of the semaphore, the user will not be
able to run the app again (untilafter reboot ;-) because the semaphore
is still in the system list. Mind you, this mishap has not actually
happened for me yet, because my app is really solid. But you never know,
right?
Q: What's the best way to accomplish the same end? DDE? Messages?
Bob
*****************************************************
**** Bob Dickow (dickow_at_uidaho.edu) ******
*** Hampton School of Music, Univ of Idaho *
** USDA Zone 5 *********************************
Received on Sat Oct 28 2000 - 20:48:41 PDT
This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:29 PST