From: Roger Pack Date: 2010-05-25T01:21:58+09:00 Subject: [ruby-core:30397] Re: tk doesn't startup well in doze > Does it occur with RubyTk-Kit version (it based on latest tcltklib.c)? It doesn't (nice). Just with 8.5 built from source with msys/mingw. Haven't tried with 8.4 I did notice that with the rubytk-kit and the other they both open up a "mystery" tk window in the background when I do the require 'tk' (which 1.8.x doesn't do, with 8.4) If that's any help or not... > Does your windows box have a multi-core CPU? Yes. > After this error message, does Ruby/Tk works fine or not? It does. > If call the following before "require 'tk'", does anything change? > ------------------------------------------------ > module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end It seems that fixes all the above problems. The mystery window doesn't appear, I am able to exit without hanging, and no error message is output. Thanks for your help on this. -rp