Changeset 2666
- Timestamp:
- 5/24/2012 7:41:48 AM (12 months ago)
- Location:
- branches/eraser6/6.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Eraser/Program.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0
- Property svn:mergeinfo changed
/trunk/eraser merged: 2661
- Property svn:mergeinfo changed
-
branches/eraser6/6.0/Eraser/Program.cs
r2263 r2666 296 296 this.CommandLine = commandLine; 297 297 298 //Check if there already is another instance of the program. 299 globalMutex = new Mutex(true, instanceID, out isFirstInstance); 298 try 299 { 300 isFirstInstance = false; 301 globalMutex = new Mutex(true, instanceID, out isFirstInstance); 302 } 303 catch (UnauthorizedAccessException) 304 { 305 //If we get here, the mutex exists but we cannot modify it. That 306 //would imply that this is not the first instance. 307 //See http://msdn.microsoft.com/en-us/library/bwe34f1k.aspx 308 isFirstInstance = false; 309 } 300 310 } 301 311
Note: See TracChangeset
for help on using the changeset viewer.
