#551: NSThread.alloc.initWithTarget segfaulting -------------------------------------+-------------------------------------- Reporter: mattaimone...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: -------------------------------------+--------------------------------------
Comment(by lsansone...@…): Here is a better test: {{{ framework 'Foundation' class Foo def test(obj) loop { print '*' } end end o = Foo.new t = NSThread.alloc.initWithTarget(o, selector: :"test:", object: 'dummy') t.start 10000.times { print '.' } puts "finished" }}} Replacing the "10000.times" loop with a simple "sleep 3" does not cause a crash anymore, so the problem is likely not related to NSThread at all. -- Ticket URL: <http://www.macruby.org/trac/ticket/551#comment:1> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel