Re: Using a tcl interpreter inside a DLL?



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
.



Relevant Pages

  • Re: strong name exception on SecurityAction.Demand, works fine for LinkDemand
    ... - in fact the behaviour has changed in 2.0 that fully trusted code always passes SNIP demands. ... so the page class derives from the code behind class to call into a SNIP demand - the stack walk fails when the page class is reached. ... I noticed that calling the component fails when the SecurityAction.Demand is on, while it succeeds when SecurityAction.LinkDemand is on. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: some tricky questions
    ... Unless the actual standard differs from n1124.pdf, ... binary file and reading it back in by at least the same program must ... just always fails -- which is conforming, but not in the spirit of the ...
    (comp.lang.c)
  • Re: get obsolute path with file
    ... What if "cd" fails? ... complex solutions to cover more contingencies; ... in most cases that is, as you named it, just overengineering. ...
    (comp.unix.shell)
  • Re: Question/was Happy Dance, in the nick of time
    ... > fails I am finishing a project for someone the night before it's due? ... Anita in cold snowy Alaska ...
    (rec.crafts.textiles.quilting)
  • Re: Question about std::remove
    ... What about a comment to show what your intention is here? ... And suppose 'getline' fails to read anything? ... but I don't see why it is necessary to sort. ...
    (alt.comp.lang.learn.c-cpp)