Commit graph

7 commits

Author SHA1 Message Date
Brian 29e8e739e3 Proper Single Instance Implementation
Reworked single instance code to better handle being launched with
context menu.

Previously:
- On launch, process would try to open an `EventWaitHandle`. If it
didn't exist, then process assumed it was first and created it
- Multiple processes launching at same time would all see the
`EventWaitHandle` did not exist before any process could create it
- This led to multiple instances of program running

Now a mutex is used:
- Processes will all try to open the mutex. Only first one will succeed
- Process that opens the mutex will setup the `EventWaitHandle`
- Other processes won't get the mutex and will be directed to use the
`EventWaitHandle` to pass their command line args to the running
instance
2016-03-10 16:29:01 -05:00
Jaex 1d0842d031 Updated license year to 2016 2016-01-03 17:16:01 +02:00
Jaex 251849aeda Copyright text update 2015-08-13 04:07:38 +03:00
Jaex 65dd658913 Translation changes for about form 2014-12-31 12:07:19 +02:00
Jaex e770e8600f Changing copyright icon 2014-12-31 11:41:32 +02:00
Jaex 9388ebb418 Updated year 2014-12-31 11:29:40 +02:00
Jaex 5096a895f1 Changed project namings (Example: HelpersLib -> ShareX.HelpersLib) 2014-12-10 22:11:55 +02:00
Renamed from HelpersLib/SingleInstanceApplication/InstanceProxy.cs (Browse further)