If you find this exception-shifting behavior troubling, please open a ticket.

Could you explain why introducing the begin/rescue pair that is good 
programming practice?

Matt

On Mar 13, 2011, at 6:31 PM, Morgan Schweers wrote:

> Greetings,
> Today I Learned :) if a thread throws an exception that isn't rescued by the 
> top of the thread, it'll crash the app's main thread with 'Program received 
> signal:  “SIGABRT”.'
> 
> That's been plaguing me since I started doing MacRuby development; every time 
> I tried to start up multiple threads, the app became incredibly fragile and, 
> unlike the main thread, it wouldn't show ruby traces.
> 
> Now I just wrap threads in begin/rescue blocks, and I'm all good.  Good 
> programming practice anyway, but the failure mode is unobvious if you don't.
> 
> Hopefully this helps someone else!
> 
> --  Morgan
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to