I want to catch all exceptions that have not been caught.
Though i have used try block in my code, but still some uncaught exception might be thrown.
I was trying this
And then add a handler with signatures likeCode:
d = AppDomain.CurrentDomain;
(Object s ,UnhandledExceptionEventArgs e)
But i dont knw if this is right and if it is, where do i place this?Code:
ex = (Exception) e.ExceptionObject;