Do NOT access interp->result
- From: Donald G Porter <dgp@xxxxxxxx>
- Date: Thu, 29 Nov 2007 12:51:32 -0500
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 |
|______________________________________________________________________|
.
- 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
- Using a tcl interpreter inside a DLL?
- Prev by Date: Re: error with tktable and mac OS 10.3
- Next by Date: Re: Using a tcl interpreter inside a DLL?
- Previous by thread: Re: Using a tcl interpreter inside a DLL?
- Next by thread: Re: Using a tcl interpreter inside a DLL?
- Index(es):
Relevant Pages
|