Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-04-07
20:33 • Closed ticket [930602ffff]: Tcl_DoOneEvent blocks when there is modal dialog... artifact: cc72d246dc user: dkf
2004-04-06
18:12 • New ticket [930602ffff]. artifact: 8fa202ebad user: nobody

Tcl_DoOneEvent blocks when there is modal dialog

Closed / Invalid930602ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-04-06 18:12:25
I am using C application with Tcl/Tk front end. I use 
tcl84.lib and tk84.lib for Windows 2000 platform. I 
periodically use following to refresh display and get user 
input.
while (Tcl_DoOneEvent(TCL_ALL_EVENTS | 
TCL_DONT_WAIT)); 

But this call blocks and never returns when I have modal 
dialog open in GUI. When I used TCL_DONT_WAIT flag, I 
assumed that this will return immediately, if there is no 
event pending. But it does not work that way. Can 
anybody explain why this is not working and how to 
make it work?
Thanks,
Niraj
dkfplain2004-04-07 20:33:32
Logged In: YES 
user_id=79902

This looks like it is Tk related, and also not actually
anything we can do anything about as (IIRC) the way Windows
native dialogs work involves blocking calls.

If you want to get something else, please refile this bug in
the tktoolkit Bug tracker, using category 36, 37 or 38 (they
all have the same problem.)
Log in (anonymous is fine) to add a comment.