Jump to content
Xtreme .Net Talk

Microsoft.VisualBasic.ApplicationServices.CantStartSingleInstanceExcep tion


Recommended Posts

Posted

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.

Posted

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

  • Administrators
Posted
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 ;)).

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

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/library/microsoft.visualbasic.applicationservices.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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...