How to handle unhandled exceptions
C#
2
Posts
2
Posters
0
Views
1
Watching
-
is there any way to handle the unhandled exceptions generated to display user define messages instead of breaking the execution.
kalaveer wrote:
handle the unhandled exceptions
Obviously not. The way to handle exceptions, is to handle them. You can handle all exceptions at a top level, but you can't then resume execution at the lower level where there were not handled. I think you need to define your question better, but if you're hoping for a way to get the framework to ignore exceptions at the point they occur, without writing a try/catch, the answer is no. This is one reason that exceptions work better than error codes. They cannot be ignored.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog