Is there a catchall handler I can register for the BeginInvoke method in C#?
On startup in my MainForm, I have this code
Application.ThreadException += new ThreadExceptionEventHandler(UIExceptionHandler);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
I thought that was enough but an exception in another form is taking down my application. How do I deal with this? (I really don't want to go into every user control I have an add a proxy BeginInvoke method with my own try..catch nor do I want to add it to every BeginInvoke call I have....that would be quite tedious compared to adding a catchall handler).
thanks, Dean