From: Hidetoshi NAGAI Date: 2010-06-02T10:55:24+09:00 Subject: [ruby-core:30551] Re: tk doesn't startup well in doze From: Roger Pack Subject: [ruby-core:30550] Re: tk doesn't startup well in doze Date: Wed, 2 Jun 2010 02:00:37 +0900 Message-ID: > Interesting. > With 1.9.1 > > # module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end > > That line causes no mystery background window, and things work as expected. > > > ------------------------------------------------------------- > > module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = false; end > > ------------------------------------------------------------- > > That line appears to have no effect (runs as normal, i.e. mystery > window, hang on exit). I'm very sorry. I had to misunderstand. > With 1.9.3 I now get this (exits fine, with mystery window, but > running an app yields:) > > irb(main):009:0> Tk.mainloop > RuntimeError: can't unset "__initail_state_of_rubytk__": no such variable Probably, it will be a kind of stupid bugs. I'll fix it soon. However, it may be a little difficult to fix the problem on your first report. I'll set RUN_EVENTLOOP_ON_MAIN_THREAD to true as default on ruby1.9 for Windows until the real reason of the problem is revealed. I understand that it never be a good idea. I'm sorry but I cannot fix it now, because I cannot re-generate it on my single-core environment. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)