From: Nikolai W. <no...@bi...> - 2010-06-18 11:36:00
|
Hi! The following code seems to lock up an never complete on 1.8.7: require 'gtk2' Gtk.init_add do Thread.start do FileUtils.cp 'a', 'b' Gtk.main_quit end end Gtk.main For any file a. Using code similar to that shown in http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_threadshttp://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_threads works, but is very slow. Has anyone encountered similar problems? Anyone have any experience with threads and 1.9.1? |