UnhandledException

Is possible to catch unhandled exception as in full .net ?

I need send stacktrace throw serial port after application crash.

When I testing my code that use hibernation, classic excaption catching by visual studion doesn’t work becouse debuger isn’t attached after wakeup.

When I add “try catch(Exception)” statment to main method it’s half solution becouse background thread excetpion not catched.

add try/catch to background thread also.