I believe using
MyApplication.UnhandledException as the single global unhandled exception handler would yield unexpected results.
For example, this exception will not be caught when placed in WinForms Load Sub:
Code:
Dim t As New Thread(Sub()
Dim i = 1
i /= 0
End Sub)
t.Start()
and when you place this code in a MyApplication_Startup Sub, the option given to the user to continue using the application will not work (that is a fatal exception, where you cannot recover, but you are not aware of it; setting
e.ExitApplication to False will have no effect):
I believe I will stick with
AppDomain.UnhandledException and play safe and not over-complicate my code by using different exception handlers simultaneously.