Menu

#45 WinMerge should clear its left-over temp files

closed-fixed
nobody
5
2009-03-23
2006-08-07
Kimmo Varis
No

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.

Discussion

  • Kimmo Varis

    Kimmo Varis - 2006-11-06

    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.

     
  • Kimmo Varis

    Kimmo Varis - 2008-02-19

    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.

     
  • Kimmo Varis

    Kimmo Varis - 2009-02-09

    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

     
  • Kimmo Varis

    Kimmo Varis - 2009-03-23

    This feature is now implemented in SVN:
    patch: #2582768 Removeing tempfiles from WM
    http://winmerge.org/patch/2582768

    So closing as fixed.

     
  • Kimmo Varis

    Kimmo Varis - 2009-03-23
    • labels: --> File handling
    • status: open --> closed-fixed
     

Log in to post a comment.