CantStartSingleInstanceException - where exactly is it thrown?

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. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top