[MacRuby] #1372: Exceptions thrown inside dispatch queue blocks propagate as uncaught objective-c exceptions

MacRuby ruby-noreply at macosforge.org
Wed Aug 3 14:11:13 PDT 2011


#1372: Exceptions thrown inside dispatch queue blocks propagate as uncaught
objective-c exceptions
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:  reduction            
------------------------------------+---------------------------------------

Comment(by mrada@…):

 Actually, looks like variables are copied in, but not copied out
 afterwards:

 {{{
 a = Dispatch::Queue.new 'org.macruby.test'

 exception = nil

 a.sync {
   begin
     raise Exception, 'oh noses'
   rescue Exception => e
     exception = e
   end
 }

 puts exception.inspect
 }}}

 So I'm not sure how to work around this issue.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1372#comment:3>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list