CantStartSingleInstanceException - where exactly is it thrown?

  • Thread starter Thread starter Steve_K
  • Start date Start date
S

Steve_K

I am having trouble with the SingleInstance feature of .net - sometimes, when
my app is already running, and a new instance is started, the new instance
crashes with a 'CantStartSingleInstanceException', most likely due to the
fact that the first instance is currently not responding since it is busy
with some CPU intensive task.

The problem is that I cannot locate where in the code of the second instance
the CantStartSingleInstanceException is thrown, so that I could include some
error handling catching such an exception. It is not thrown in the
'MyApplication_StartupNextInstance' since that code section includes some
error handlers and would report if an exception occurs there...

Any help would be appreciated. :)
 
Back
Top