|
From: Dave B. <dav...@3d...> - 2005-11-22 18:06:29
|
I occasionally get this error:
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/
objc/oc_wrapper.rb:80:in `NSApplicationMain': NSApplicationMain -
RBException_NoMethodError - undefined method `%' for nil:NilClass
(OSX::OCException)
from /Users/dave/Chips/DES/mediaUI/build/Development/tui.app/
Contents/Resources/rb_main.rb:22
I haven't been able to reproduce it reliably but if you look in the
line in question it should be impossible to get this error as far as
I can see:
79: m_args.each_with_index do |val, index|
80: if (index % 2) == 0 then <<<<
error on this line
81: args.push(val)
82: else
83: mname += "_#{val.to_s}"
84: end
85: end
unless the stack is getting corrupted or something.
dave 2% ruby -v
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.2]
on Tiger 10.4.3
with rubycocoa version
VERSION = "0.4.2"
STAGE = ""
RELEASE_DATE = "2005-11-10"
I am not doing anything fancy with rubycocoa - some simple drawing to
the screen (fonts, images and filled rectangles) and handling
keyboard events.
Does this ring any bells with anyone. I will try to find a way of
reproducing the problem reliably.
Dave.
|