Skip to content
Tcl Source Code History Of Ticket 1452058
Login

History Of Ticket 1452058

Artifacts Associated With Ticket 1452058

  1. Ticket change [71e349b7cb] (rid 100761) by neoxed on 2006-03-17 08:19:31:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl Version: 8.5a4
      OS Version: Windows XP SP2
      
      Once an extension is unloaded with -keeplibrary I'm 
      unable to load the extension again. This happens with 
      any extension, but I'll use the bundled registry one 
      to demonstrate.
      
      Actual output:
      LoadA: registry {registry tcl::tommath Tcl}
      Unload: {} {tcl::tommath Tcl}
      LoadB: {} {tcl::tommath Tcl}
      
      Expected output:
      LoadA: registry {registry tcl::tommath Tcl}
      Unload: {} {tcl::tommath Tcl}
      LoadB: registry {registry tcl::tommath Tcl}
      
      When the load command is invoked afterwards (LoadB), 
      it seems Tcl does not call the package's Init() 
      procedure.
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "neoxed"
    9. subsystem initialized to: "40. Dynamic Loading"
    10. title initialized to:
      unload -keeplibrary prevents re-loading the extension
      
    11. type initialized to: "Bug"
  2. Add attachment "unload.tcl" [10e9518f80] (rid 95044) by neoxed on 2006-03-17 15:19:31.

  3. Ticket change [70d0a1d47d] (rid 100556) by neoxed on 2006-03-17 15:19:59:

    1. icomment:
      
      
      File Added - 171235: unload.tcl
      
      
      
    2. login: "neoxed"
    3. mimetype: "text/plain"
    4. username: "neoxed"
  4. Ticket change [4909e00c7a] (rid 100000) by neoxed on 2006-03-20 12:23:29:

    1. icomment:
      Logged In: YES 
      user_id=1119750
      
      After further investigation, the problem occurs at lines 
      ~255-260 in tclLoad.c. The load command will search through 
      a list of loaded packages, and if the package is already 
      loaded it returns.
      
      Since the package is unloaded with -keeplibrary, it's entry 
      remains in the package list.
      
      
    2. login: "neoxed"
    3. mimetype: "text/plain"
    4. username: "neoxed"
  5. Ticket change [4549560d9c] (rid 99326) by neoxed on 2006-03-23 07:21:37:

    1. priority changed to: "9 Immediate"
  6. Ticket change [47bd7f2455] (rid 99755) by dgp on 2006-03-23 10:39:44:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      how is this related to 1111134 ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [c965f4d719] (rid 122279) by neoxed on 2006-03-24 05:18:38:

    1. resolution changed to: "Duplicate"
    2. status changed to: "Deleted"
  8. Ticket change [77919bb016] (rid 89797) by neoxed on 2006-03-24 05:18:39:

    1. closedate changed to: "2006-03-23T22:18:39"
    2. closer changed to: "neoxed"
    3. icomment:
      Logged In: YES 
      user_id=1119750
      
      My mistake, this is a duplicate of 1111134. I searched 
      for "-keeplibrary" and no results were returned, so I 
      assumed this issue had never been mentioned.
      
      
    4. login: "neoxed"
    5. mimetype: "text/plain"
    6. username: "neoxed"