If I open the Help from TC (F1) two unique temporary files are created in the %TEMP% directory.
When I close the Help, both of those files are deleted. But if I close TC while the Help is still open, then only one of the temporary files is deleted (and later opening and closing the Help does not remove the leftover file either).
This behavior occurs the fist time in TC 9.0 beta 1.
Not a big deal, but it contributes to filling up the %TEMP% directory with useless files.
Temporary file created by TC not removed when TC is closed
Moderators: Hacker, petermad, Stefan2, white
Temporary file created by TC not removed when TC is closed
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Temporary file created by TC not removed when TC is closed
Hello,
This behavior is due to how Windows' help system works. If you were to manually open a CHM file, any CHM file, either from TC or from Windows Explorer (or any file manager for that matter) you'll notice that two temp files are created in %TEMP% and are deleted when you close the file.
It kinda sounds more like a bug in the specific Windows' help system.
Regards
This behavior is due to how Windows' help system works. If you were to manually open a CHM file, any CHM file, either from TC or from Windows Explorer (or any file manager for that matter) you'll notice that two temp files are created in %TEMP% and are deleted when you close the file.
It kinda sounds more like a bug in the specific Windows' help system.
Regards
Re: Temporary file created by TC not removed when TC is closed
It's a problem not only with HTML Help support, it's a problem with tools used to create this program.tcOne wrote: 2021-11-20, 11:33 UTC It kinda sounds more like a bug in the specific Windows' help system.
~DF????.TMP files (where 0x???? is a random hex number) are created by some MSVC runtime libs (7.0?) and possibly by some MSVC .net Framework libs (2.0?). There is at least one file with 16 KiB size created. It is locked when the program runs and deleted on normal program exit. It may stay undeleted when the program crashes or when you kill the program process.
It looks like TC either uses wrong way to close HTML Help or doesn't wait long enough when closing the Help on exit. I didn't check the problem more extensively, so I may be wrong.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Temporary file created by TC not removed when TC is closed
There are more programs who leave temporary files there; I use a disk cleaner to remove all from time to time. When the necessity is there maybe you put a cleaner in your tasks list or just a batch file who removes all files in TEMP. The schedule is up to you.
Re: Temporary file created by TC not removed when TC is closed
2Usher
That's what I think to - especially because TC 8.00 - 8,52a does delete both files on exiting TC without closing the help first - so some routine regarding this seems to have been changed after TC 8.52aIt looks like TC either uses wrong way to close HTML Help or doesn't wait long enough when closing the Help on exit.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar