You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
It is just a small issue, but you can start the application 2 times and then it does not work correctly anymore!
How about implementation of a Singleton, that checks if Prog is already started
something like that
static class Program
{
static Mutex mutex = new Mutex(true, "PSVRToolbox");
[STAThread]
static void Main() {
if(mutex.WaitOne(TimeSpan.Zero, true)) {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
mutex.ReleaseMutex();
} else {
MessageBox.Show("only one instance at a time");
}
}
}
The text was updated successfully, but these errors were encountered: