Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c2a9f75ce1c5c17dea52cd0196577708542fc1eb
Ticket: 218115ffffffffffffffffffffffffffffffffff
Error in Tcl deletion callbacks (C++/CORBA)
User & Date: nobody on 2000-10-26 00:53:18
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1906 Bug
    Version: 8.1b3
    SubmitDate: '1999-04-19'
    LastModified: '1999-11-30'
    Severity: SER
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: Windows NT
    OSVersion: 4.0 SP3
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-11-30'
    
    
    Name: Matthew D. Spencer
    
    Comments:
    I'm really at a loss as far as how to track down this bug. Our
        application is quite large, so unfortunately a code snippet is not
        available. However, I can attempt to recreate the problem in a smaller
        application. Has anyone else had strange behavior with deletion
        callbacks in a C++/CORBA (VisiBroker) project?
    
    ReproducibleScript:
    I have been having strange results using Tcl deletion callbacks within
        our C++/CORBA projects. I have a number of data items associated with
        the Tcl interpreter (Tcl_SetAssocData) which require deletion callbacks
        to free up the memory associated with them. When I provide a deletion
        call back (as opposed to a NULL pointer for the callback) in
        Tcl_SetAssocData, at exit time the Tcl application hangs. However, when
        I debug the application and set breakpoints at the deletion callback
        methods, the application hangs before even reaching the deletion
        callbacks.
    
    DesiredBehavior:
    I expect there to be no difference between data associated with a
        deletion callback and those without. It seems as if internally they are
        being handled differently, though my callback is never executed.
    
    
    
    It is possible that the user isn't calling Tcl_DeleteInterp,
    which is necessary to call the deletion callbacks for AssocData.
    If the user wants more generic resource cleanup, they should
    look at Tcl_CreateExitHandler and Tcl_DeleteExitHandler. 
    -- 11/30/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1b3"
  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: "Error in Tcl deletion callbacks (C++/CORBA)"
  11. type changed to: "Bug"