Skip to content
Tcl Source Code Artifact [fe55a748a6]
Login

Artifact [fe55a748a6]

Artifact fe55a748a63384e8d818d0f08f3769624413b03d:

Ticket change [fe55a748a6] - Ticket [545579ffffffffff|545579ffff] <i>cleanup after load from VFS</i> status still Open with 4 other changes by vincentdarley on 2002-05-21 19:58:39.
D 2002-05-21T19:58:39
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nIf\syou\scan\sdelete\sthe\sfile\simmediately\son\sUnix,\syou\scould\s\ntry\sadding\sbefore\sthis\sblock\sof\scode:\n\n/*\s\n\s*\sWhen\swe\sunload\sthis\sfile,\swe\sneed\sto\s\ndivert\sthe\s\n\s*\sunloading\sso\swe\scan\sunload\sand\scleanup\s\nthe\s\n\s*\stemporary\sfile\scorrectly.\n\s*/\ntvdlPtr\s=\s(FsDivertLoad*)\sckalloc(sizeof\n(FsDivertLoad));\n\nin\stclIOUtil.c\s(around\sline\s2516),\sthe\sfollowing:\n\n/*\sTry\sto\sdelete\sthe\sfile\simmediately\s*/\nif\s(Tcl_FSDeleteFile(copyToPtr)\s==\sTCL_OK)\s{\n\s\s\s\sTcl_DecrRefCount(copyToPtr);\n\s\s\s\s(*clientDataPtr)\s=\sNULL;\n\s\s\s\s(*unloadProcPtr)\s=\sNULL;\n\s\s\s\sreturn\sretVal;\n}\n\nfor\sthe\sproblems\son\sWindows,\sI\ssuggest\syou\sput\sa\sbreakpoint\s\nin\sFSUnloadTempFile\sand\sdescribe\swhat\sgoes\swrong\s---\swhy\s\nthe\sfile\sisn't\sdeleted.\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 545579ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 89c0b3ee8c16e69512ac7bb93809990d