The man page for Tcl_DoWhenIdle says this:
BUGS
At present it is not safe for an idle callback to
reschedule itself continuously. This will interact
badly with certain features of Tk that attempt to wait
for all idle callbacks to complete. If you would like
for an idle callback to reschedule itself continuously,
it is better to use a timer handler with a zero timeout
period.
Unfortunately, the recommendation it gives to user
timer events doesn't work either, as can be seen in Tk
Bug 1348333, which results in Tk locking up when too
many text widgets are created.
Vince.
|