M
msnews.microsoft.com
What's the easiest way to make a program so that only one instance is ever
running at a time?
I'm doing a mutex at the moment - problem is - when the main window closes,
I try and release the mutex and I'm getting a 'object synchronization method
was called from an unsynchronized block of code.'
I've seen things where you write to the registry but my fear is that if the
program doesn't shut down normally it means it can never run again.
TIA - Jeff.
running at a time?
I'm doing a mutex at the moment - problem is - when the main window closes,
I try and release the mutex and I'm getting a 'object synchronization method
was called from an unsynchronized block of code.'
I've seen things where you write to the registry but my fear is that if the
program doesn't shut down normally it means it can never run again.
TIA - Jeff.