Event for unhandled exceptions in Silverlight background threads?

Is there a useful equivalent of AppDomain.UnhandledException for Silverlight? I say useful, because although the method exists in Silverlight, MSDN has it as [SecurityCritical] .

I would like to be notified of exceptions that occur in the background or ThreadPool threads so that I can log them. Application.UnhandledException was another candidate, but it looks like it only gets exceptions from the UI thread.

+4
source share
1 answer

Are you using Silverlight 3? I just put together a simple SL3 application that showed that Application.UnhandledException was notified of unhandled exceptions from the UI thread, thread pool thread, workflow thread, and workflow thread.

Perhaps you prematurely convinced yourself. :)

+6
source

All Articles