Artifacts Associated With Ticket 1452058
Ticket change [71e349b7cb] (rid 100761) by neoxed on 2006-03-17 08:19:31:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "neoxed"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to:
unload -keeplibrary prevents re-loading the extension
- type initialized to: "Bug"
Add attachment "unload.tcl" [10e9518f80] (rid 95044) by neoxed on 2006-03-17 15:19:31.
Ticket change [70d0a1d47d] (rid 100556) by neoxed on 2006-03-17 15:19:59:
- icomment:
File Added - 171235: unload.tcl
- login: "neoxed"
- mimetype: "text/plain"
- username: "neoxed"
- icomment:
Ticket change [4909e00c7a] (rid 100000) by neoxed on 2006-03-20 12:23:29:
- 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.
- login: "neoxed"
- mimetype: "text/plain"
- username: "neoxed"
- icomment:
Ticket change [4549560d9c] (rid 99326) by neoxed on 2006-03-23 07:21:37:
- priority changed to: "9 Immediate"
Ticket change [47bd7f2455] (rid 99755) by dgp on 2006-03-23 10:39:44:
- icomment:
Logged In: YES user_id=80530 how is this related to 1111134 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c965f4d719] (rid 122279) by neoxed on 2006-03-24 05:18:38:
- resolution changed to: "Duplicate"
- status changed to: "Deleted"
Ticket change [77919bb016] (rid 89797) by neoxed on 2006-03-24 05:18:39:
- closedate changed to: "2006-03-23T22:18:39"
- closer changed to: "neoxed"
- 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.
- login: "neoxed"
- mimetype: "text/plain"
- username: "neoxed"