C
Claudio Di Flumeri
Hello all,
I've added a global exception handler to my application in this way:
Sub Main()
AddHandler Application.ThreadException, AddressOf ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
UnhandledException
Application.Run(Main)
End Sub
At one point in my application, I use the
System.Diagnostics.Process.GetProcesses() method, and it fires a
System.InvalidOperationException error (I know why, it's related to the
Performance Counter Disabled in the Registry, so this is not an issue). But
why the exception is not catched by the two exception handler I've declared
in the Sub Main?
Thanks
I've added a global exception handler to my application in this way:
Sub Main()
AddHandler Application.ThreadException, AddressOf ThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf
UnhandledException
Application.Run(Main)
End Sub
At one point in my application, I use the
System.Diagnostics.Process.GetProcesses() method, and it fires a
System.InvalidOperationException error (I know why, it's related to the
Performance Counter Disabled in the Registry, so this is not an issue). But
why the exception is not catched by the two exception handler I've declared
in the Sub Main?
Thanks