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
|