#357: NSLog causes "BAD_EAX_ACCESS" on 10.6
------------------------------------------+---------------------------------
 Reporter:  mitchell.hashim...@…          |       Owner:  lsansone...@…        
     Type:  defect                        |      Status:  new                  
 Priority:  blocker                       |   Milestone:                       
Component:  MacRuby                       |    Keywords:                       
------------------------------------------+---------------------------------

Comment(by mattaimone...@…):

 This is a known bug, while waiting for it to be fixed, you can use "puts"
 to get the same result.

 {{{
 # Loading the Cocoa framework. If you need to load more frameworks, you
 can
 # do that here too.
 framework 'Cocoa'

 # Loading all the Ruby project files.
 dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
 Dir.entries(dir_path).each do |path|
   if path != File.basename(__FILE__) and path[-3..-1] == '.rb'
     require(path)
   end
 end

 # Test Log, should crash program
 puts "Foo Bar Baz"

 # Starting the Cocoa main loop.
 NSApplicationMain(0, nil)
 }}}

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to