|
2001-04-23
| ||
| 02:06 | • Closed ticket [218199ffff]: Command deletions are not called on exit plus 7 ... artifact: dfe90d8af4 user: dgp | |
| 02:04 | • Open ticket [218199ffff]. artifact: 7e03dd7813 user: dgp | |
|
2000-10-26
| ||
| 08:16 | • Closed ticket [218199ffff]. artifact: f65529658f user: welch | |
| 00:54 | • New ticket [218199ffff]. artifact: 0b939141d1 user: nobody | |
Command deletions are not called on exit
Closed / Fixed218199ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:25
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
welch Closed ticket [218199ffff].
[History diff]2000-10-26 08:16:56
dgp Open ticket [218199ffff].
[History diff]2001-04-23 02:04:29
dgpplain2001-04-23 02:06:51
Logged In: YES user_id=80530 Duplicate of FR 227269
Log in (anonymous is fine) to add a comment.