Hi,
I'm building a VB.NET application on a PocketPC and I'm trying to implement a global error handling. As I'm new to .NET I looked in the help and I saw that you can add an handler to the Application.ThreadException event. However since I'm building a device app, I'm using the Compact Framework and the ThreadException even is not supported in the CF.
Then I also tried to include the application in a global TRY/CATCH block like this :
Shared Sub Main()
Try
Application.Run(New Mainmenu)
Catch ex As Exception
ExceptionHandling.ShowError(ex, True)
End Try
End Sub
but it doesn't work neither, the thrown exceptions are only catched after an Application.Exit() call. So I'm somewhat lost as to know how I should implement a global error handling in my device application ?
Any advice appreciated!
Sylvain Bujold