Skip to content
Tcl Source Code View Ticket
Login

View Ticket

transient toplevel windows crash 8.3.2

Closed / Invalid408970ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2001-03-16 00:26:33
The following short script crashes tcl/tk 8.3.2 under windows 98

--- BEGIN SCRIPT ---
update idletasks
toplevel .foo
# update idletasks ;#  <--  THIS WORKS AROUND
# set z 0
# button .foo.x -command {global z; set z 1;}
# pack .foo.x
wm transient .foo .
tkwait variable z
# exit
--- END SCRIPT ---

Setup:
I have verified this crash under Windows 98 with tcl 8.3.2 and 8.4a2.  It does not crash 8.2.1.
I have received reports that it also crashes under Windows 2000 and Windows ME using 8.3.2.

Reproduction:

Save the script to a file named "something.tcl" and double click on that file from explorer
OR
Create a shortcut that runs "c:\path\to\wish83.exe something.tcl" and click on that shortcut

The crash only occurrs when this script is run directly via a shortcut or double-clicking a tcl file 
directly;  starting the wish interpreter first and source-ing or pasting the script will NOT cause the 
crash.  

Expected result:
As is, 2 windows should appear, one of which is transient.

The commented out lines are necessary for the script to be sane, but not for the crash.

Actual result:
Windows popup saying  "This program has performed an illegal operation and will be shut down"

Additional information:
The indicated line will prevent the crash when uncommented.

The indicated line prevents the crash from occurring.
dkfplain2001-03-16 17:49:54
Logged In: YES 
user_id=79902

This looks like a Tk bug, not a Tcl one.  Please resubmit to
the tktoolkit project (the tracker does not let me transfer
bugs between projects, alas.)  Sorry about this...
dgp Ticket [408970ffff]: 3 changes [History diff]2001-04-06 02:21:46
Log in (anonymous is fine) to add a comment.