2010-12-28, 07:45 PM
I got multiple with that but the log has
2010-12-28 14:34:12.642 [DEBUG][1] Created mutex. Must be only instance.
2010-12-28 14:34:12.759 [DEBUG][1] Version: 1.5.36
2010-12-28 14:34:12.761 [DEBUG][1] SingleInstance()
FWIW I was testing some code and this works but Global doesn't
Martin
2010-12-28 14:34:12.642 [DEBUG][1] Created mutex. Must be only instance.
2010-12-28 14:34:12.759 [DEBUG][1] Version: 1.5.36
2010-12-28 14:34:12.761 [DEBUG][1] SingleInstance()
FWIW I was testing some code and this works but Global doesn't
Code:
Mutex mutex = new Mutex(true, "Local\\NPVR_INSTANCE");
if (!mutex.WaitOne(0, false))
{
MessageBox.Show("Instance already running");
return;
}
Martin