Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2748d15138708047f41a25d541bbe4c2ea13c9b3
Ticket: 408971ffffffffffffffffffffffffffffffffff
transient toplevel windows crash 8.3.2
User & Date: dvrsn on 2001-03-16 00:26:23
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
    
  4. foundin changed to: "obsolete: 8.3.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dvrsn"
  9. subsystem changed to: "90. FAQs"
  10. title changed to: "transient toplevel windows crash 8.3.2"
  11. type changed to: "Bug"