Re: Memory leak when use Tcl_Eval functions in C programming



On Sep 29, 5:03 am, fangvv <fan...@xxxxxxxxx> wrote:
Hello, everyone!

In my C program, I use the tcl scripting for calculation. I use
Tcl_Eval and Tcl_EvalFile to execute the calculation and these
functions will return the result through tcl interpreter defined in C
code. However, since the tcl calculation is so much, I found in the
windows task manager that the program keeps on consumming the memory,
when every time it eval the tcl command or tcl script through Tcl_Eval
or Tcl_EvalFile.

How could I do? Thanks a lot!

One solution is to avoid lifting the hood entirely, by starting a
separate Tcl process and talking to it through pipes. I guess the I/O
overhead is not of concern here since you're extending a C master app
with Tcl...

-Alex
.



Relevant Pages