Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b939141d155a5e4e70c1ddbc36eee5857df8cd4
Ticket: 218199ffffffffffffffffffffffffffffffffff
Command deletions are not called on exit
User & Date: nobody on 2000-10-26 00:54:25
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2410 RFE
    Version: 8.1.1
    SubmitDate: '1999-07-19'
    LastModified: '1999-12-03'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows NT
    OSVersion: NT4.0 SP5, and Windows 2000
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-12-03'
    
    
    Name:
    Ian Brown
    
    DesiredBehavior:
    It seems that the command deletions are not called on exiting. I'm
        working around it at the moment by keeping a list of all the commands I
        create and then deleting them all in my package exit handler.
        
        This is pretty messy though as I have commands that create commands...
        
        I had assumed that the interpreter would be deleted when exiting ... I
        fail to 
        see why it isn't. It looks to me as if the command delete procs are
        called when a command is deleted (via Tcl_DeleteCommandFromToken for
        example),
        but not when the interpreter is deleted. Maybe the commands themselves
        do not get deleted on interpreter exit.
        
        This seems to be a bug to me. Does anyone out there know the rationale
        for the current behaviour ? Is there any documentation as to exactly
        when the
        command deletion handler will be called, and when not ?
    
    
    
    The command deletion handler is called when the command is
    actually explicitly deleted (like 'rename cmd {}', or the
    destruction of a widget).  Since commands can exist in
    multiple interps, you don't can't just delete it with each
    interp. 
    -- 12/03/1999 hobbs
    
  4. foundin changed to: "final: 8.1.1"
  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: "69. Other"
  10. title changed to: "Command deletions are not called on exit"
  11. type changed to: "RFE"