Navigation

User login

To prevent automated spam submissions leave this field empty.

C# WPF global exception handler catchall

Rather than manually try/catching everything, for some purposes, it can be appropriate to create a global exception handler using Application.DispatcherUnhandledException. This is an event that is called when an unhandled exception occurs. At this point you can eat the exception if desired, and attempt to continue operation of the program. Note that control flow of the program will be affected.

by Margaret Walker on Sun, 10/24/2010 - 15:14

Recent Posts

Poll

Are you excited for Avatar 2?
I already dyed my skin blue in anticipation!
44%
I think I'll wait for the reviews
32%
I prefer movies about puppies and kittens!
24%
Total votes: 5962

Random image

The location of French Guiana on a map