Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grabbing Unhandled Exceptions in Winforms (C#)
Message
De
12/03/2008 14:53:35
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01301455
Message ID:
01301461
Vues:
13
>I'm comfortable with try{}...catch{}.
>
>I'd like to capture exceptions while running a winform window; I've been rifling through pages and pages of online documentation but I cannot seem to locate how to install my own exception handling for window forms.
>
>Right now I get a popup window with the "Unhandle exception has occurred..." message.
>
>How do hook into this and handle it with my own code, the try{}...catch{} in my main() does not do it.
>
>Thank you in advance.

Can you verify in the debugger that the exception does indeed happen within the Try Catch block? Also, are you catching the base Exception class?
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform