winmerge
winmerge copied to clipboard
Messagebox: "Another application has updated file" is shown unexpected
I usually create a file named a.txt
, copy text to it and immediately compare it to another file.
In this case often the messagebox Another application has updated file ... since WinMerge scanned it last time. Do you want to reload the file?
is shown by error.
When writing this bug report I mentioned:
- A file written to my NAS at 14:00:00 (last modify date) is automatically changed after around 14 seconds to 14:00:14 (last modify date).
- I have to investigate what triggers that - no WinMerge involved here. (Perhaps the NAS or our virus Program)
I don't know if WinMerge could do anything here, as this cannot be distinguished from a real change that should be communicated.
When investigating the code there is a tolerance of 2 seconds that WinMerge can ignore, but that would not fit here.
IMO close as won't fix. :-(
I will report back if I can solve the problem with the NAS.
https://github.com/WinMerge/winmerge/blob/3745a345b5fdfa17052241c50ef12484dc5a1723/Src/HexMergeDoc.cpp#L570-L584
https://github.com/WinMerge/winmerge/blob/a5e35e70bb54ac1de7c2238be43f12f20cda1ec1/Src/HexMergeView.cpp#L254-L267