Compare by contents > 1MB file size limit - files locked for external changes

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
chrism
Junior Member
Junior Member
Posts: 2
Joined: 2020-04-03, 11:30 UTC

Compare by contents > 1MB file size limit - files locked for external changes

Post by *chrism »

FileA - size x < 1048576 bytes
FileB - size y < 1048576 bytes
1) Compare by Contents - leave the window open
2) Use an external editor to modify one of the compare files
3) Return to Compare by Contents
4) Prompt: File(s) modified, re compare?
Perfect, exactly the behaviour I want.

New scenario:
FileA - size x >= 1048576 bytes
FileB - size y >= 1048576 bytes
Follow the steps above... But, at step 2) the file cannot be saved to disk 'as it is now in use' by 'Compare by Contents'

Question
Is there a workaround for this to increase the limitation?
Background: Map files being generated of files greater than the limit, means I have to remember to close 'Compare by Contents' before building.
I'd prefer not to use external tools, but may end up going this route

Thanks

Chris
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Compare by contents > 1MB file size limit - files locked for external changes

Post by *ghisler(Author) »

Yes, this can be configured via wincmd.ini section [Configuration]
MaxCompareSizeInMem=<value in bytes>

The default is 1048576. Smaller files will be completely loaded into a memory block via ReadFile. Larger files will be mapped into memory, which locks them.
Author of Total Commander
https://www.ghisler.com
chrism
Junior Member
Junior Member
Posts: 2
Joined: 2020-04-03, 11:30 UTC

Re: Compare by contents > 1MB file size limit - files locked for external changes

Post by *chrism »

Fantastic, works a treat!

Enjoy the weekend

Chris
Post Reply