On Tue, 17 Oct 2000, Daniel Wickstrom wrote:
 
> I was never able to get Tcl_CreateThreadExitHandler to work for either
> the TclThreadCleanup or the JavaCacheCleanup routines.  As a
> work-around I decided to call both of these cleanup routines at the
> end of the JavaInterpDeleted function.  I've run this setup under
> load, and other than leaking memory, I've had no problems.  

If you create only one Tcl interp in a thread, the might
work. It is not going to work in the more general case
as multiple Tcl interps can exist in one thread.

Just run:

% interp create

And you got two right there!

Perhaps it is a problem with some init code
that is not getting run in the Tcl interp.
What part of Tcl calls those callbacks?

Mo DeJong
Red Hat Inc

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to