Re: Using a tcl interpreter inside a DLL?
- From: "thelfter@xxxxxxxxx" <thelfter@xxxxxxxxx>
- Date: Fri, 30 Nov 2007 05:13:43 -0800 (PST)
On Nov 30, 7:24 am, Mark Janssen <mpc.jans...@xxxxxxxxx> wrote:
On 29 nov, 19:56, "thelf...@xxxxxxxxx" <thelf...@xxxxxxxxx> wrote:> On Nov 29, 12:43 pm, jmbussat <jmbus...@xxxxxxxxx> wrote:
<snip>
This is more appropriate for a modern Tcl Interpreter.
if (Tcl_Init(interp) != TCL_OK) {
fprintf(STDERR,
"Tcl_Init: %s",
Tcl_GetStringResult(interp));
return;
}
Out of curiousity; will it always be valid to get the result from an
interp if the Tcl_Init fails?
Mark
Hi Mark,
In my experience, I would say yes. As long as Tcl_CreateInterp() does
not error then, getting the result is safe.
I've never had any trouble with this.
-Todd
.
- References:
- Using a tcl interpreter inside a DLL?
- From: jmbussat
- Re: Using a tcl interpreter inside a DLL?
- From: Donald G Porter
- Re: Using a tcl interpreter inside a DLL?
- From: jmbussat
- Re: Using a tcl interpreter inside a DLL?
- From: thelfter@xxxxxxxxx
- Re: Using a tcl interpreter inside a DLL?
- From: Mark Janssen
- Using a tcl interpreter inside a DLL?
- Prev by Date: Re: need help
- Next by Date: Re: need help
- Previous by thread: Re: Using a tcl interpreter inside a DLL?
- Next by thread: Tcl under conditions of high memory usage.
- Index(es):
Relevant Pages
|