Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 71e349b7cb22f0c5a739645b5dffaf88d339c2dc
Ticket: 1452058fffffffffffffffffffffffffffffffff
unload -keeplibrary prevents re-loading the extension
User & Date: neoxed on 2006-03-17 08:19:31
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "neoxed"
  9. subsystem changed to: "40. Dynamic Loading"
  10. title changed to:
    unload -keeplibrary prevents re-loading the extension
    
  11. type changed to: "Bug"