|
-
May 7th, 2008, 03:27 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Check if this is the last instance of an appliction on closing.
To close a independend application (a Chat program)
I need to know if my application is the last instance of this application running on a system.
I can of course iterate through all proccesses, but I was hoping there would be a simpler way to achive this task.
Using Counters to keep track of the number of instances is not a way 'I want to go, for it would flaw on a crash of any instance.
A mutex would be a problem if the first instance is closed first...
Does anyone know a simple straightforward solution to this problem?
Thanks in advance,
 why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
for every question you ask provide an answer on another thread.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|