Re: Memory leak when use Tcl_Eval functions in C programming
- From: Alexandre Ferrieux <alexandre.ferrieux@xxxxxxxxx>
- Date: Sun, 28 Sep 2008 23:46:00 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Memory leak when use Tcl_Eval functions in C programming
- From: Gerald W. Lester
- Re: Memory leak when use Tcl_Eval functions in C programming
- References:
- Prev by Date: Memory leak when use Tcl_Eval functions in C programming
- Next by Date: Re: Batteries Included
- Previous by thread: Memory leak when use Tcl_Eval functions in C programming
- Next by thread: Re: Memory leak when use Tcl_Eval functions in C programming
- Index(es):
Relevant Pages
|