Artifacts Associated With Ticket 1246399
Ticket change [f58b5ecf67] (rid 130130) by alvinpleung on 2005-07-27 23:01:01:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I am currrently using tcl 8.4.9 with Itcl 3.2. My program throws an error with error code inside one of the itcl object method. However, the errorcode in the global scope did not get updated. #Error code in tcl saveErrorCode - NONE #tclCmdAH.c:563 for tcl8.4.9 with Itcl 3.2 errorCode = TOOMANYWIRETYPE #Error code in tcl saveErrorCode - NONE proc saveErrorCode {name index op} { puts "saveErrorCode - [set $name]" } trace variable errorCode rwu saveErrorCode # trace is generated if {[catch {$a run $xmlf} msg]} { ... } I changed tclCmdAH.c:563 from Tcl_SetVar2Ex(interp, "errorCode", NULL, objv[3], TCL_GLOBAL_ONLY); to Tcl_ObjSetVar2(interp, iPtr->execEnvPtr->errorCode, NULL, objv[3], TCL_GLOBAL_ONLY); The trace changed to #Error code in tcl saveErrorCode - NONE #tclCmdAH.c:563 for tcl8.4.9 with Itcl 3.2 errorCode = TOOMANYWIRETYPE #Error code in tcl saveErrorCode - TOOMANYWIRETYPE - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "alvinpleung"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "error command faile to set errorCode"
- type initialized to: "Bug"
Ticket change [0520e55a68] (rid 89003) by dkf on 2005-07-28 14:53:16:
- assignee changed to: "dgp"
Ticket change [509e5bd3b6] (rid 126004) by alvinpleung on 2005-07-29 02:23:00:
- icomment:
Logged In: YES user_id=958624 My test case was not clean, so the fix does not work. However, the bug is real. As far as I know, the bug only appears if I use Itcl 3.2.1 and tclXML 3.0 packages togather. I will update this bug, when I know more.
- login: "alvinpleung"
- mimetype: "text/plain"
- username: "alvinpleung"
- icomment:
Ticket change [41e559e5b7] (rid 116272) by dgp on 2005-07-29 04:38:50:
- closedate changed to: "2005-07-28T21:38:50"
- closer changed to: "dgp"
- foundin changed to: "obsolete: 8.4.9"
- icomment:
Logged In: YES user_id=80530 I can't make sense out of this report. Please open another one, and include a script that demonstrates the bug. Your [saveErrorCode] proc looks buggy too, failing to use [uplevel] or [upvar] to examine the traced variable in the original context.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dgp"