I want to use Tcl interpreter in C API at some point. The problem is that I do not have a handle to Tcl_Interp.
I'm doing this via nscp, so there is no current connection - then I'd be able to use Ns_ConnGetInterp().
So, I do this:
interp=Ns_TclAllocateInterp(Ns_TclInterpServer(NULL));
I get an interp, and then at some point I do:
Ns_TclDeAllocateInterp(interp);
After calling my function several times, I get a SEGV.
Looking at nscp, it seems that it does exaclty the same.
I've minimized my code to allocating an interp and deallocating it, so I cannot mess anything up in the Tcl interp.
What is more interesting is that there are no memory leaks when I do not deallocate the interp.
For me it looks like I cannot recursively allocate and deallocate interpreters. Could this be true?
ps. AOLserver 3.4.2, Linux.
-- WK
-- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
