O'Reilly logo

Microsoft® Mobile Development Handbook by Peter Foot, Daniel Moth, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Global Exception Handling

One of the most requested features from the .NET Compact Framework team was the ability to catch unhandled run-time exceptions globally in a single place. This has always been possible in the full .NET Framework, but is not fully possible in .NET Compact Framework version 1.0. Before we look at those, though, and more important before we show how version 2.0 of the .NET Compact Framework delivers on the popular request, it is worth evaluating what the purpose of global exception handling (GEH) really is.

The purpose of GEH is to log all unhandled exceptions and not to allow any of them to escape to the user. You will recall this is the second rule of exception handling as established in the section titled "Runtime Exceptions" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required