System crashes executing Tcl_NewStringObj()
Closed / Fixed218275ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:21
OriginalBugID: 3371 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-08'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
FixedDate: '2000-10-25'
ClosedDate: '1999-11-08'
Name:
Hugh Vu
ReproducibleScript:
I'm using embedded TCL in Windows NT 4.0
When I executed the following:
Tcl_Obj *MyObj;
MyObj = Tcl_NewStringObj ("MyString", -1);
before creating an interpreter, the system crashed with "Memory Access
Violation".
But if I created an interpreter first, it was OK, like this:
Tcl_Interp *interp;
Tcl_Obj *MyObj;
interp = Tcl_CreateInterp();
MyObj = Tcl_NewStringObj("MyString", -1);
This problem happens in TCL 8.2.0 and 8.2.1 but not in 8.0.5
Am I supposed to create interp first? I could not find any reference to
this in documentation for Tcl_NewStringObj()
If I have to create an interp. first, it would put a serious constraint
in my application logic.
Please let me know if this is a bug in TCL.
These commands are not designed to be used without more
initialization.
-- 11/08/1999 hobbs
welch Closed ticket [218275ffff].
[History diff]2000-10-26 08:17:57
Log in (anonymous is fine) to add a comment.