ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] help
by Jeff Hobbs other posts by this author
May 23 2008 1:00PM messages near this date
view in the new Beta List Site
[Activetcl] help | [Activetcl] Driving M$ IE
yz_nk@[...].com wrote:
>   I create a TCL interp in a thread. And use Tcl_Eval to execute a 
>  script. But I want to exit the thread when I click one button.
>  
>  So I use the Tcl_Trace to set a trace proc and receive the button 
>  message. But I cannot exit the TCL interp normally! In the Tcl_CreateTrace
>  
>  doc, it shows:
>  
>  "There is no way for the /proc/ associated with a call to 
>  *Tcl_CreateTrace* to abort execution of /command/. "
>  
>  I can only kill the thread directlly, but there mybe some memory leaks, 
>  for the interp is not freed with Tcl_InterpDelete.

While there are various ways to kill off the thread, which always has 
indeterministic consequences, what you might be interested in the 
following enhancement proposal:

http://tip.tcl.tk/285

Jeff
Thread:
Yz Nk
Jeff Hobbs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved