Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Catch unhandled exceptions in add-in instead of crashing RobotStudio

Hello,

I'm developing a RobotStudio add-in. Every once in a while my Add-In will throw an exception, and I get a "RobotStudio - Fatal Error" message box. Once you click yes or no, RobotStudio crashes.

Is there an easy way to catch any unhandled exceptions in my Add-In without placing try/catches around every method? I've used the dispatcher unhandled exception handler in other WPF applications, but I can't find anything like that for my add-in.

Thank you for the help!