Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Error in Tcl deletion callbacks (C++/CORBA)

Closed / Fixed218115ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:18
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
welch Closed ticket [218115ffff]. [History diff]2000-10-26 08:14:48
dgp Ticket [218115ffff]: 3 changes [History diff]2001-04-17 05:52:46
Log in (anonymous is fine) to add a comment.