Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tclkits producing temporary directories on Windows

Closed / Duplicate5c7578d0f2958bfd973bdd14f44dcdda24661494Created 11 years agoUpdated 42 days ago
Descriptionplain2016-05-03 21:00:37
Windows DLLs packaged in starpacks, kits, ZIP file systems are extracted
to a temporary directory in $env(TEMP) with pattern TCLnnnnnnnn (where n
are hex digits) before they can be loaded into the process address space.
This is implemented in the platform specific part of Tcl_LoadFile().
However, the directory is not cleaned up on termination of the application,
so over time these directories clutter up the TEMP storage.

A proof of concept implementation which performs a cleanup on termination
is implemented in two AndroWish check-ins, see
http://www.androwish.org/index.html/info/8124bec2b006626e and
http://www.androwish.org/index.html/info/02f57b011f15ee65

For discussion on comp.lang.tcl see
http://comp.lang.tcl.narkive.com/mdJikuUi/tclkits-producing-temporary-directories
serhiy.storchakawiki2026-10-14 15:36:10

This is the same issue as [a8e4f76ce4], where the possible solutions (loading DLLs from memory, cleanup by a subprocess) and the problems with unloading DLLs at exit, as in the AndroWish patch, are discussed. The fix [35ac7f7ade] was only committed to the androwish branch.

serhiy.storchaka Ticket [5c7578d0f2]: 3 changes [History diff]2026-10-22 17:19:25
Log in (anonymous is fine) to add a comment.