From: Laurent S. <lsa...@ap...> - 2007-08-28 14:47:21
|
Thanks for the report, this issue should be fixed in r2018. Laurent On Aug 28, 2007, at 3:22 PM, Hans-Georg wrote: > I can crash RubyCoca on an iMac G5 running OSX 10.4.10 : > > require 'osx/cocoa' > puts "RubyCocoa #{OSX::RUBYCOCOA_VERSION}" > string = "a\nstring\nwith\nfew\nlines\n" > scanner = OSX::NSScanner.scannerWithString(string) > go, line = scanner.scanUpToString_intoString_("\n") > while go > puts line > go, line = scanner.scanUpToString_intoString_("\n") > end > puts "Done" > > iMac:~ hg$ /usr/bin/ruby crash.rb > RubyCocoa 0.12.0 > a > string > with > few > lines > crash.rb:9: [BUG] Segmentation fault > ruby 1.8.2 (2004-12-25) [universal-darwin8.0] > Abort trap > > Is there a way to use the while condition directly with a function > with several return values? > > Hans-Georg > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |