aneesh.joy
May 26th, 2006, 06:29 AM
Hi all,
I have a single instance application which is started automatically
on user logons.
Single instance is maintained using a global mutex lock.
Now the problem i m facing when running on multi logon machines is as follows.
UserA logs in --> single.exe is started
UserB logs in --> single.exe detects another instance and exits.
UserA logs out --> running single.exe exits.
Now there is no instance of single.exe is running on that computer.
I can not make this program a windows service since it should be
running as any logged on user as owner.
Do you have any ideas to solve this problem ?
Cheers
I have a single instance application which is started automatically
on user logons.
Single instance is maintained using a global mutex lock.
Now the problem i m facing when running on multi logon machines is as follows.
UserA logs in --> single.exe is started
UserB logs in --> single.exe detects another instance and exits.
UserA logs out --> running single.exe exits.
Now there is no instance of single.exe is running on that computer.
I can not make this program a windows service since it should be
running as any logged on user as owner.
Do you have any ideas to solve this problem ?
Cheers