In My windows applications I used a named mutex to check for a single
instance
eg in Main
string appName="My App"
bool createdNew=false;
//Instance protect is a static member of the app class
InstanceProtect =new Mutex(true,appName,out createdNew);
if ( ! createdNew ){
Console.WriteLine("Instance of {0} already
running",appName);
return ;
}
Under mono the first time this runs it's ok, after that the mutex always
lives (even when no instances (even after the first application is
dead), So you can basically only start the app once.
Is mono failing to clean up?
Thanks
Ralph
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list