Tcl Source Code

View Ticket
Login
Ticket UUID: 217944
Title: Tcl_CallWhenDeleted doesn't when 'testthread exit' with an e
Type: Bug Created on: 2000-10-26 00:46:24
Submitter: nobody Assigned to: nobody
Subsystem: 49. Threading Severity:
Priority: 2 Last modified: 2000-10-26 08:10:55
Status: Closed Closed by: welch
Resolution: Fixed Closed on: 2000-10-26 01:10:55
Version: obsolete: 8.3b1
Description:
OriginalBugID: 3876 Bug
Version: 8.3b1
SubmitDate: '1999-12-14'
LastModified: '2000-07-25'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: davidg
RelatedBugIDs: 5301
OS: Windows 2000
OSVersion: build 2128
FixedDate: '2000-07-25'
ClosedDate: '2000-10-25'


Name:
David Gravereaux

CVS:
I updated on saturday

CustomShell:
tclAsync.c fixes are in progress.

Comments:
I'll try to get to this with the tclAsync.c fixes I'm working on, but just want to make sure this is in the BugDB.

ReproducibleScript:
% testthread create {
  load "d:/projects/ghe_cvs/ghe/ghe_dirwatch/debug/ghe_dirwatch.dll"
  GHE::startwatch c:/temp {gotcha [testthread id]}
  proc gotcha {id} {
    puts "c:/temp has been written to and yielded notifier thread $id"
  }
  testthread wait
}
1344
% testthread send {testthread exit}
wrong # args: should be "testthread send ?-async? id script"
% testthread send 1344 {testthread exit}
target thread died
%

ObservedBehavior:
Tcl_CallWhenDeleted is very important to my extension as this is how the classes are managed.  Without Tcl_CallWhenDeleted, the destructor doesn't get called.