From: nagai@... Date: 2002-11-21T16:55:37+09:00 Subject: Re: ruby 1.6.8pre + Tk = 100% CPU? Hi, From: "kvh" Subject: ruby 1.6.8pre + Tk = 100% CPU? Date: Wed, 20 Nov 2002 02:14:24 +0900 Message-ID: <34877.192.168.1.1.1037725646.squirrel@nicole.iquest.net> > I'm using the 1.6.8pre. I notice that the ext/tk/sample/tkhello.rb uses > 100% of the CPU. This was not the case with 1.6.7. I take it this is a > bug? The problem is due to new event loop procedure on tcltklib.c. I wrote new Tk.mainloop method to avoid deadlock troubles on Ruby/Tk and to get faster response for events. But it seems to have some faults. Although I'll try to fix the problem, maybe the work needs long time if the strategy must be changed. If your Ruby/Tk scripts have no trouble on old event loop and the trouble is more than you can bear, please replace tcltklib.c and tk.rb with those of 1.6.7. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)