Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 234cb34585c4bade3c2f8f0d9d1fa191ad5b42339799a4a549b4b4788829d0f4
Ticket: a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder
User & Date: jan.nijtmans on 2024-11-27 13:59:40
Changes

  1. assignee changed to: "jan.nijtmans"
  2. icomment:
    > No one is disputing that loading from memory would be attractive. The question is whether it can be implemented robustly and correctly on platforms that do not natively support it and do not provide api's that allow for its safe implementation.
    
    Amen. B.T.W: I think the answer to this question is simply: YES this can be done. I went through the MemoryModule pull requests. There are 9 of them. 4 give solutions to known bugs, I now merged those. This means that SEH exception handling should now work on Win64. It doesn't mean all dll's work: [https://github.com/fancycode/MemoryModule/issues/101|Dll's protected with WinLicense] are still out-of the question, I'm sure there are more. Two other pull-requests are nice-to-haves, we don't need them. The remaining 3 look invalid to me.
    
    > 2) impossibility to use nested DLL's (if some tcl-module needs another DLL's as dependencies to work, and want to provide them together within the executable).
    > ...
    > And the latter is to neglect, because even current implementation doesn't allow it (I don't think the dependencies will be automatically unpacked to TMP-folder now).
    
    Indeed, this doesn't work now. But using MemoryModule, it could be made to work: there is a callback when a dll needs to load another dll and when it needs a symbol or resources from it.
    
    TIP time
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/x-fossil-wiki"