Microsoft.VisualBasic.ApplicationServices.CantStartSingleInstanceExcep tion

ADO DOT NET

Centurion
Joined
Dec 20, 2006
Messages
160
Hi,
I want to catch CantStartSingleInstanceException exception.
But I don't know where should I do this?
It's not in form load.
Because no code will cause this exception to occur.
Anyone able to help me please?
Thanks.
 
No, it does not work.
You know, if you simply create a single instance application and run it, then run another instance, if you have some firewall like ZoneAlarm and it blocks the access of 2nd instance, this error occurs.
I tested but could not catch it in the UnhandledExceptionEvent
 
If you don't handle this exception does your application crash? In other words are you sure it is getting raised (I'm only asking because my setup here doesn't have a local firewall so I can't force this to happen and there is no way I'm installing ZoneAlarm on a working pc just to try this out ;)).
 
Dear PlausiblyDamp,
thanks for taking the time to help me:)
I have snapshots of the problem here.
If I press debug, I will see that CantStartSingleInstanceException occurred.
I can find the related page on MSDN:

http://msdn2.microsoft.com/en-us/li...ervices.cantstartsingleinstanceexception.aspx

But this page does not have a sample on how to use it and I really am confused how and where to catch this exception?

Also, Merry Christmas :D
 
Back
Top