From: "NAKAMURA, Hiroshi" Date: 2002-03-20T11:06:53+09:00 Subject: Re: irb, ruby and threads Hi Mark, > From: Mark Probert > Sent: Wednesday, March 20, 2002 4:51 AM > However, when I run it under ruby, I get the following error: > > > (eval):3:in `format': wrong # of arguments(4 for 1) (ArgumentError) > from ./coll3k.rb:156:in `join' > from ./coll3k.rb:156:in `get_data' > from ./coll3k.rb:156:in `each' > from ./coll3k.rb:156:in `get_data' > from ./coll3k.rb:233 > > > line 156 points to ... > > > @threads.each { |thr| thr.join } > Is the error in the block > where the threads are defined? 'Format' seems to indicate a Yes. Use debugger or try ruby -d col3k.rb With -d, ruby warns when an exception is raised. Regarding irb, I don't know well the inside of irb. Anyone? Hope this helps, // NaHi