I solved the problem :-)
I was using the latest version of FXRuby (1.6.16)
I uninstalled this and dropped back to the previous version.
Now when I run the programs everything works as it should.
I guess I should have thought of this sooner.
Thanks for the help.

-- 
Posted via http://www.ruby-forum.com/.