Tcl Source Code

View Ticket
Login
Ticket UUID: 708166
Title: dde servers can hang on exit
Type: Bug Created on: 2003-03-22 22:00:20
Submitter: patthoyts Assigned to: patthoyts
Subsystem: 28. dde Package Severity:
Priority: 7 High Last modified: 2003-03-22 22:00:20
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.3
Description:
If there is a badly behaved windows application running
on the system and a tcl interpreter that is a DDE
server attempts to exit - the interp may hang until
messages are processed in the remote application.

We can demonstrate this by starting tclsh and setting
the dde servername. This gives us a badly behaved
windows application - that is a toplevel window has
been created but we are not processing the message queue.

Now if we start another tclsh or wish and set the dde
servername and then exit - the interpreter will hang in
DdeExitProc during the call to DdeNameService() until
such time as the first interpreter processes it's
message queue.