Do NOT access interp->result



jmbussat wrote:
/* Initialize TCL */
if (Tcl_Init(interp) == TCL_ERROR) {
//fprintf(stderr, "Tcl_Init failed: %s\n", interp->result);
sprintf(str,"Tcl_Init failed: %s\n", interp->result);
LDialog_AlertBox(str);
return;
}

Please, please, please stop doing that. Get some code
examples written in this century to copy and modify.

Replace reads from interp->result with
Tcl_GetStringResult(interp).

Now, that's not the cause of your crashes, but it is
so annoying I had to post separately on the matter.

--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.



Relevant Pages

  • Re: Getting crash information
    ... Well I can change my application, modify the source, if it can help me catch ... the bugs that crashes my application. ... to make sure the Dr. Watson is set as the JIT debugger. ... files (debug dlls objs etc) as I want to. ...
    (microsoft.public.dotnet.languages.vc)
  • Loading Forms Crashes Access 2000 in Win98 Computer
    ... When I try to load up a form, either to use it or to modify it, Access ... crashes almost every time. ... What might be causing this and what should I do? ...
    (microsoft.public.access.forms)
  • Re: Design this Page crashes IE!
    ... Whenever I want to update a sharepoint home page and click Modify Page ... then Design this Page IE crashes and closes. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: MS Media Encoder and MPEG
    ... Pixel Format before it crashes? ... Is there any change if you modify ... for example setting it to IYUV or I420 before encoding? ...
    (microsoft.public.windowsmedia.player)
  • Design this Page crashes IE!
    ... I want to update a sharepoint home page and click Modify Page then Design ... this Page IE crashes and closes. ... It happeneing on the 6 or 7 sites we ...
    (microsoft.public.sharepoint.windowsservices)