Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e1d154aecd1402203e41d8107ad99968d86ca99a
Ticket: 2269431fffffffffffffffffffffffffffffffff
load of shared objects leaves temporary files on windows
User & Date: nijtmans on 2008-11-13 19:05:58
Changes

  1. icomment:
    > I'm just starting to discover how intricated the finalization hairball is,
    > but I suspect that delaying things is not the solution; indeed, in bug
    
    Indeed, thinking more about it, delaying is not the solution: On Windows
    and HP-UX it is impossible to remove a shared library from the filesystem
    when it is not unloaded.
    
    But I have a better idea now. If the dll is loaded from a
    VFS file system, then its unloadProc is FSUnloadTempFile
    (a static function in tclIOUtil.c). So we can simply
    check for this, and allowing the unload in this
    situation. That's a much simpler fix, and it prevents
    muggling with exit handler related things!
    
    > an unLoadProc, but for those who have both, we could decide than the
    > unLoadProc takes over and automatically de-registers the exitHandler ? Or
    > calls it immediately ?
    Yes, this is how it should be. But the problematic libraries
    referred to in [Bug 2059262] don't have any way to de-register
    or run the exitHandler (believe me, I searched for that before
    filing 2059262!).
    
    Regards,
           Jan Nijtmans
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"