From: ces.fci.junk@... Date: 2005-11-15T01:17:15+09:00 Subject: Re: RMagick 1.9.3: examples/histogram.rb - erro I believe I figured it out although I'm not entirely sure of the solution (unless you can tell me how to loop through all the values and unset the nil values -- note: i'm still new to ruby). running this lets me know there is a lot of nil values which would explain the "nil:NilClass (NoMethodError)" -- nil doesn't have the max method: for i in red p "nil!" if i.nil? end Now, what is strange about this is that the arrays are *already* defined to all have zero: red = Array.new(HISTOGRAM_COLS, 0) green = Array.new(HISTOGRAM_COLS, 0) blue = Array.new(HISTOGRAM_COLS, 0) alpha = Array.new(HISTOGRAM_COLS, 0) int = Array.new(HISTOGRAM_COLS, 0) I tried changing all of the 0's to 1's to see if that would make a difference (it did not). I also tried using the fill method which had no effect. but, if you say it is a wild pointer I'll concede. I had to download xwindow.c and xwindow.h from the sourceforge page since they weren't included with my source[for ImageMagick] -- I had received a compile error which said they were missing (maybe that is related[?]). Clayton