Skip to content
Tcl Source Code Artifact [741df87901]
Login

Artifact [741df87901]

Artifact 741df87901bbc966d7aefece9d297db730240df5faca64c547e04eb11e9f5d75:

Ticket change [741df87901] - Ticket [a8e4f76ce498ad64|a8e4f76ce4] <i>load library (dll) from zipfs-library causes a leak in temporary folder</i> status still Open with 3 other changes by jan.nijtmans on 2024-11-26 10:04:44.
D 2024-11-26T10:04:44.706
J icomment >\sWhat\shappens\sif\sthe\sDLL\scontains\sresources\saccessed\sby\sthe\scode?\sWill\sLoadResource\saccept\sthe\shandle\spassed\sby\sMemoryModule\sto\sthe\sDLL\sentry\spoint?\r\n\r\nI\scan\snow\sanswer\sthat\sone.\sI\smade\san\sexperiment,\szipping\stcl9tk90.dll\sinto\stclsh90.exe,\stogether\swith\sa\shand-crafted\spkgIndex.tcl\sfile.\sSee\sattached\simage.\r\n\r\nThe\sfeather\sis\sa\sresource\sinside\stcl9tk90.dll,\sit\sis\saccessed\sand\sdisplayed\scorrectly\sin\sthe\stop-left\scorner\sof\sthe\swindow.\sThe\scoffee_mug\sis\sanother\sresource.\sWhen\smoving\sover\sthe\sbutton,\sthe\scoffee_mug\scursor\sis\svisible\s(unfortunately,\sscreen-shots\sdon't\scapture\scursors).\sSo,\sthe\sanswer\sto\sthis\squestion\sis\sYes.\sThis\sdemonstrates\sthat\sLoadCursorA()\sis\saccepting\sthe\shandle\sreturned\sby\sTk_GetHINSTANCE().\r\n\r\nI\salso\swent\sthrough\sthe\sTk\sdemos's:\sall\sof\sthem\sare\sworking\sfine.\r\n\r\n<pre>\r\nC:\\Users\\jan.nijtmans\\workspace\\tcl9.0\\win>.\\tclsh90.exe\r\n%\spackage\srequire\stk\r\n9.0.1\r\n%\sbutton\s.b\s-text\scoffee_mug\s-cursor\scoffee_mug\r\n.b\r\n%\spack\s.b\r\n%\sinfo\sloaded\r\n{//zipfs:/lib/tcl/tcl_library/registry/tcl9registry13.dll\sRegistry}\s{//zipfs:/lib/tcl/tcl9tk90.dll\sTk}\r\n%\r\n</pre>
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K a8e4f76ce498ad648134e0b6867c359949055388
U jan.nijtmans
Z a2ae2c1425558a1b0c1fff7ac3728539