Skip to content
Tcl Source Code History Of Ticket 1246399fffffffff
Login

History Of Ticket 1246399fffffffff

Artifacts Associated With Ticket 1246399fffffffff

  1. Ticket change [f58b5ecf67] (rid 130130) by alvinpleung on 2005-07-27 23:01:01:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "alvinpleung"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "error command faile to set errorCode"
    11. type initialized to: "Bug"
  2. Ticket change [0520e55a68] (rid 89003) by dkf on 2005-07-28 14:53:16:

    1. assignee changed to: "dgp"
  3. Ticket change [509e5bd3b6] (rid 126004) by alvinpleung on 2005-07-29 02:23:00:

    1. 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.
      
      
    2. login: "alvinpleung"
    3. mimetype: "text/plain"
    4. username: "alvinpleung"
  4. Ticket change [41e559e5b7] (rid 116272) by dgp on 2005-07-29 04:38:50:

    1. closedate changed to: "2005-07-28T21:38:50"
    2. closer changed to: "dgp"
    3. foundin changed to: "obsolete: 8.4.9"
    4. 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.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "dgp"