WinMerge should clear its left-over temp files
Windows visual diff and merge for files and directories
Brought to you by:
christianlist,
grimmdp
In case WinMerge crashes, it should clear left-over
temp files in next start.
This should be no problem for normal users who have one
of stable releases, but users using and testing
experimentals can see quite many crashes. And every
crash can leave temp files to user's temp folder.
We have own naming for temp files so it is pretty easy
to check if matching files are found from user's temp
folder and delete them.
Logged In: YES
user_id=631874
One problem is we've added several temp-file classes and
container classes to sources. We need to unify them and use
just one, with proper life-time rules.
Logged In: YES
user_id=631874
Originator: YES
Situation got better lately when I added TempFile class and list of temp files for compare. Archive support still has its own temp file code.
Note, we cannot just remove all files matching the temp file name patterns. There might be several WinMerge instances running and we really don't want to delete other instance's temp files.
Couple of possible solutions:
- create per-instance subfolders to the temp folder
- add process id to temp filenames
This feature is now implemented in SVN:
patch: #2582768 Removeing tempfiles from WM
http://winmerge.org/patch/2582768
So closing as fixed.