Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exception Handling
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Exception Handling
Miscellaneous
Thread ID:
00909046
Message ID:
00909046
Views:
49
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
Reply
Map
View

Click here to load this message in the networking platform