Overview
| Artifact ID: | 741df87901bbc966d7aefece9d297db730240df5faca64c547e04eb11e9f5d75 |
|---|---|
| Ticket: | a8e4f76ce498ad648134e0b6867c359949055388
load library (dll) from zipfs-library causes a leak in temporary folder |
| User & Date: | jan.nijtmans on 2024-11-26 10:04:44 |
Changes
- icomment:
> What happens if the DLL contains resources accessed by the code? Will LoadResource accept the handle passed by MemoryModule to the DLL entry point? I can now answer that one. I made an experiment, zipping tcl9tk90.dll into tclsh90.exe, together with a hand-crafted pkgIndex.tcl file. See attached image. The feather is a resource inside tcl9tk90.dll, it is accessed and displayed correctly in the top-left corner of the window. The coffee_mug is another resource. When moving over the button, the coffee_mug cursor is visible (unfortunately, screen-shots don't capture cursors). So, the answer to this question is Yes. This demonstrates that LoadCursorA() is accepting the handle returned by Tk_GetHINSTANCE(). I also went through the Tk demos's: all of them are working fine. <pre> C:\Users\jan.nijtmans\workspace\tcl9.0\win>.\tclsh90.exe % package require tk 9.0.1 % button .b -text coffee_mug -cursor coffee_mug .b % pack .b % info loaded {//zipfs:/lib/tcl/tcl_library/registry/tcl9registry13.dll Registry} {//zipfs:/lib/tcl/tcl9tk90.dll Tk} % </pre> - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"