Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7190c02120f28e964e0ca5540af3624951412e5e
Ticket: 486453ffffffffffffffffffffffffffffffffff
tclsh exits when Tk interps deleted
User & Date: nobody on 2001-11-28 13:02:02
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [Based on my post to comp.lang.tcl]
    [cf. <http://groups.google.com/groups?
    hl=en&lr=lang_en&newwindow=1&selm=slrna087g6.sdm.dgp%
    40clover.cam.nist.gov>]
    
    I executed the following code after installing the
    ActiveTcl8.3.4.1-8.win32-ix86.exe package from
    ActiveState's web site.  The problem detailed below 
    happens under Windows 2000 and Windows 98. I also got 
    the same response when I compiled under Solaris 2.8.
    
    tclsh83.exe
    % interp create foo
    % interp create bar
    % load c:/program\ files/tcl/bin/tk83.dll Tk foo
    % load c:/program\ files/tcl/bin/tk83.dll Tk bar
    % interp delete foo
    % interp delete bar
    
    The load commands each cause a toplevel to appear, and 
    interp eval commands allow widgets to be created in 
    each toplevel, etc.
    
    However, when the last interpreter is deleted, tclsh 
    exits.  
    
    If Tk is loaded into sub interpreters, the main
    interpreter should not exit when all of the Tk
    enabled sub interpreters are deleted. 
    
    *********
    
    This appears to be a bug in the Tcl_Main() routine.  
    Please file a bug report at the Tcl project at 
    SourceForge.net.
    
    http://sf.net/projects/tcl/
    
    File it under the Category "Application Embedding".
    
    -- 
    Don Porter
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "50. Embedding Support"
  10. title changed to: "tclsh exits when Tk interps deleted"
  11. type changed to: "Bug"