<i>load library (dll) from zipfs-library causes a leak in temporary folder</i> status still Open with 3 other changes
by
.
D 2024-11-27T12:32:34.012
J icomment From\sone\sside,\sI'd\salso\sprefer\sa\srobust\simplementation.\r\n\r\nFrom\sother\sside,\sthe\sunpack\sto\stemp-folder\sis\salso\sugly\s(no\smatter\sonce\sor\sper\sprocess)\sfor\sseveral\sreasons,\slike\stroubles\swith\srude\sAV\sor\spolicies,\sor\snecessity\sto\sclean\sit\safter\sexit.\r\n\r\nParticularly\sbecause\sthe\ssole\srobust\simplementation\sis\salready\shere\sand\sit\sis\scalled\sstatic\slinking.<br/>\r\nAnd\sit\shas\sbasically\sonly\stwo\scons:\r\n\r\n\s\s#\s\ssome\stoolchain\sis\snecessary\sto\screate\sa\sready\sexecutable;\r\n\s\s#\s\simpossibility\sto\suse\snested\sDLL's\s(if\ssome\stcl-module\sneeds\sanother\sDLL's\sas\sdependencies\sto\swork,\sand\swant\sto\sprovide\sthem\stogether\swithin\sthe\sexecutable).\r\n\r\nHowever\sthe\sformer\sis\ssolvable\susing\sdifferent\sways,\se.\sg.\soffline\sor\sonline\stool\sto\sdo\sthat\s(e.\sg.\ssimilar\sto\skit-creator).<br/>\r\nAnd\sthe\slatter\sis\sto\sneglect,\sbecause\seven\scurrent\simplementation\sdoesn't\sallow\sit\s(I\sdon't\sthink\sthe\sdependencies\swill\sbe\sautomatically\sunpacked\sto\sTMP-folder\snow).\r\n\r\nI\sdon't\ssee\sany\sother\sreason\swhy\s<code>{load\s$dir/some-dll.dll\ssome-module}</code>\s(with\sinternal\sload\sfrom\smem\sby\ssome\shackish\sway)\smay\sbe\smore\spreferable\sthan\ssimplest\s<code>{load\s{}\ssome-module}</code>\s(with\sload\sdirect\sfrom\sexecutable).\r\n\r\nExcepting\sprobably\sthe\sfactor\s"compression",\sbut\sfirstly\sthe\sbinaries\sare\susually\svery\sbad\scompressible,\sand\sif\snot\s-\sthere\sare\sspecial\stools\slike\s<i>upx</i>,\swhich\scan\sbe\sused\sto\scompress\sthe\swhole\sexecutable.
J login sebres
J mimetype text/x-fossil-wiki
K a8e4f76ce498ad648134e0b6867c359949055388
U sebres
Z fb56951497ec4e50c1aae79e619b649c