I've been following this, it's very interesting, not a problem I've had but 
worth knowing about. If you've isolated this issue to this degree it might be 
worth filing a bug report about it. 

On 07-Feb-2010, at 11:14 PM, Paul Sanders wrote:

> If anyone was following / interested in this, I made one further discovery. 
> NSExceptionHandler delegates are not called if an exception is raised in a 
> subthread.  Instead, the app just silently terminates.  Worse, on Snow 
> Leopard Crash Reporter fails to kick in, so you don't even get a crash 
> report.  Exit one (potential) customer.
> 
> Fortunately, there is a simple solution: use NSSetUncaughtExceptionHandler 
> instead.  Although this disables the NSExceptionHandler delegate, that 
> doesn't matter because you can do exactly the same things in your uncaught 
> exception handler so all is well.  You still need to call [NSExceptionHandler 
> setExceptionHandlingMask:] to tell Cocoa which exceptions you are interested 
> in, else you never see any.
> 
> As per my previous posts, my app seems to run just fine trapping and treating 
> as fatal all exceptions (except system exceptions) in this way, with the 
> proviso that certain exceptions as previously listed must be silently 
> ignored.  I sleep a lot better at night knowing that I will get a crash log, 
> rather than mysterious mis-behaviour of my app, if an exception is thrown 
> that I do not explicitly cater for.
> 
> Paul Sanders.
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to