Hello There wrote: > What the problem is now that the function i am calling in the thread > doesn't run anyway(some problem with mechanize and threads aswell?) > since the function runs fine when i for example place it in initialize > for the class. And I can comment out the function and for example just > change a variable in it and it works fine aswell. My advice is just to fix your program in 1.8.6 or 1.8.7. Threads work absolutely fine in 1.8, and as has been pointed out, you're on your own if you have complex library dependencies with 1.9, as lots of 3rd-party libraries don't work with 1.9. As already advised, Thread.abort_on_exception = true should help you find out what's going wrong in your thread. Or else you can add a bit of debugging yourself: Thread.new do begin .. normal stuff rescue Exception => e $stderr.puts "#{e}\n\t#{e.backtrace.join("\n\t")}" end end -- Posted via http://www.ruby-forum.com/.