Thanks a lot James for your advice. Yes, think have to read more deeply 
about garbage collection.
-- 
Posted via http://www.ruby-forum.com/.