Overview
| Artifact ID: | a04455d77b511738976c35d235935bdd057f1d71 |
|---|---|
| Ticket: | 1783443fffffffffffffffffffffffffffffffff
apache and websh |
| User & Date: | rbrunner on 2007-09-04 19:40:04 |
Changes
- icomment:
Logged In: YES user_id=205230 Originator: NO I found a potential problem in Websh on Server 2003 (don't ask me why it should be different on that platform...) Is the following code correct (it's Websh code, not Tcl code)? Tcl_Obj *tmp = NULL; tmp = Tcl_NewStringObj(source, length); var = Tcl_ObjSetVar2(interp, varname, NULL, tmp, TCL_GLOBAL_ONLY | TCL_APPEND_VALUE | TCL_LEAVE_ERR_MSG); Tcl_DecrRefCount(tmp); Note that there is no Tcl_IncrRefCount(tmp) before the call to Tcl_ObjSetVar2(). I thought this should work, but it crashes on Win Server 2003... If I indeed need to fix this, I'll send a patched version to the OP (assuming it was zackya) so he can check if the error still occurs. Please advise... - login: "rbrunner"
- mimetype: "text/plain"
- username: "rbrunner"