Tcl Source Code

View Ticket
Login
Ticket UUID: 1469327
Title: Tcl_DoWhenIdle can't reschedule
Type: Bug Created on: 2006-04-12 15:02:12
Submitter: vincentdarley Assigned to: hobbs
Subsystem: 02. Event Loops Severity:
Priority: 5 Medium Last modified: 2006-04-12 22:02:34
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.5a4
Description:
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.