[Mono-osx] Preventing Crash Window

Juan Roman Escamilla juanroman at unosquare.com
Thu Jul 28 22:17:53 EDT 2011

What is the best way to implement a catch-all event handler in a MonoMac application. I'm getting a SIGSEV error and I can't track it down. How does a standard Cocoa Application prevent exceptions?

In the .NET Framework world, in order to do a catch-all event handler I usually add a handler for UnhandledException in AppDomain and also I could attach to Application's ThreadException. In my Monomac application I am attaching to the AppDomain's UnhandledException and I've even added a handler for the Main's method where the NSApplication starts. I've made sure that every part of the UI has a handler but unfortunately it seems like my app dies before logging anything in a handler.

Juan Roman Escamilla

US: +1 (503) 722-3480
MX Dir.: +52 (33) 3839-1853
MX Cel.: +52 (33) 1520-3565
MX Biz.: +52 (33) 3839-1855
juanroman at unosquare.com<mailto:juanroman at unosquare.com>

unosquare.com<http://unosquare.com/> | the gateway to nearshore

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110729/45e6fc2e/attachment.html 

More information about the Mono-osx mailing list