[FogBugz #77] Modifier gestion Application.SetUnhandledExceptionMod #139
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Assigned To: Frederik Benoist
Project: CAISSE
Area: awcaisse
Category: Fonctionnalité
Priority: Ce serait bien !
Event ID: 282
Date: 2013-02-05T15:47:37Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Namespace My
' Les événements suivants sont disponibles pour MyApplication :
'
' Startup : déclenché lors du démarrage de l'application, avant la création du formulaire de démarrage.
' Shutdown : déclenché après la fermeture de tous les formulaires de l'application. Cet événement n'est pas déclenché si l'application se termine de façon anormale.
' UnhandledException : déclenché si l'application rencontre une exception non gérée.
' StartupNextInstance : déclenché lors du lancement d'une application à instance unique et si l'application est déjà active.
' NetworkAvailabilityChanged : déclenché lorsque la connexion réseau est connectée ou déconnectée.
Partial Friend Class MyApplication
Private Sub MyApplication_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException
MsgBox(e.Exception.Message)
End Sub
End Class
End Namespace
Event ID: 281
Date: 2013-02-05T15:47:08Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist
Dans mmain
If Not File.Exists(Application.StartupPath & "\dotsoftdev.txt") Then
AddHandler Application.ThreadException, AddressOf mGestionException
Application.SetUnhandledExceptionMod(UnhandledExceptionMode.CatchException)
End If
Event ID: 280
Date: 2013-02-05T15:46:06Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist
Event ID: 279
Date: 2013-02-05T15:46:05Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist