Why is this Win32 mutex thingy failing
My App object has this in the Open event
#if TargetWin32 then
appmutex = new Mutex( "Risky Business SOS" )
if NOT appmutex.TryEnter then // Already running...
MsgBox "Please only use one instance of RiskyBusinessSOS at a time."
Quit
end if
#endif
My App object has one property:
Protected appmutex As mutex
Trying to open a second instance in Windows throws an exception : Sub
Mutex.Leave( Mutex )
?!?
Any suggestions?
--
Cheers,
Dr Gerard Hammond
MacSOS Solutions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>