[FogBugz #77] Modifier gestion Application.SetUnhandledExceptionMod #139

Open
opened 2023-07-03 23:17:24 +02:00 by fbenoist68 · 4 comments

Assigned To: Frederik Benoist
Project: CAISSE
Area: awcaisse
Category: Fonctionnalité
Priority: Ce serait bien !

Assigned To: Frederik Benoist Project: CAISSE Area: awcaisse Category: Fonctionnalité Priority: Ce serait bien !
Poster
Owner

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: 282 Date: 2013-02-05T15:47:37Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> Namespace My</p> <p> &nbsp;&nbsp;&nbsp; &#39; Les &eacute;v&eacute;nements suivants sont disponibles pour MyApplication&nbsp;:<br /> &nbsp;&nbsp;&nbsp; &#39;<br /> &nbsp;&nbsp;&nbsp; &#39; Startup&nbsp;: d&eacute;clench&eacute; lors du d&eacute;marrage de l&#39;application, avant la cr&eacute;ation du formulaire de d&eacute;marrage.<br /> &nbsp;&nbsp;&nbsp; &#39; Shutdown&nbsp;: d&eacute;clench&eacute; apr&egrave;s la fermeture de tous les formulaires de l&#39;application. Cet &eacute;v&eacute;nement n&#39;est pas d&eacute;clench&eacute; si l&#39;application se termine de fa&ccedil;on anormale.<br /> &nbsp;&nbsp;&nbsp; &#39; UnhandledException&nbsp;: d&eacute;clench&eacute; si l&#39;application rencontre une exception non g&eacute;r&eacute;e.<br /> &nbsp;&nbsp;&nbsp; &#39; StartupNextInstance&nbsp;: d&eacute;clench&eacute; lors du lancement d&#39;une application &agrave; instance unique et si l&#39;application est d&eacute;j&agrave; active.<br /> &nbsp;&nbsp;&nbsp; &#39; NetworkAvailabilityChanged&nbsp;: d&eacute;clench&eacute; lorsque la connexion r&eacute;seau est connect&eacute;e ou d&eacute;connect&eacute;e.<br /> &nbsp;&nbsp;&nbsp; Partial Friend Class MyApplication</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Private Sub MyApplication_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) Handles Me.UnhandledException<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox(e.Exception.Message)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Sub<br /> &nbsp;&nbsp;&nbsp; End Class</p> <p> End Namespace</p>
Poster
Owner

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: 281 Date: 2013-02-05T15:47:08Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> Dans mmain</p> <p> &nbsp;If Not File.Exists(Application.StartupPath &amp; &quot;\dotsoftdev.txt&quot;) Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddHandler Application.ThreadException, AddressOf mGestionException<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Application.SetUnhandledExceptionMod(UnhandledExceptionMode.CatchException)<br /> End If</p>
Poster
Owner

Event ID: 280
Date: 2013-02-05T15:46:06Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist

Event ID: 280 Date: 2013-02-05T15:46:06Z Person: Frederik Benoist Description: Attribué à Frederik Benoist par Frederik Benoist
Poster
Owner

Event ID: 279
Date: 2013-02-05T15:46:05Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist

Event ID: 279 Date: 2013-02-05T15:46:05Z Person: Frederik Benoist Description: Ouvert par Frederik Benoist
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fbenoist68/mobileportal#139
There is no content yet.