File compare locks big files

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

File compare locks big files

Post by *samot »

If I compare two files (both around 60 MB), the compare locks both files, so that I (or another program) can't write them.

Smaller files are not locked and I'll be asked, if I want to compare them again, if another program has modified them.

It would be nice, if it would work with bigger files too (I wasted several time to find the purpose, why my own (self-written) program did not to, what it shall).

best regards

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

Post by *ghisler(Author) »

The difference is that small files are loaded into memory, while large files are just mapped into memory, using the Windows memory mapping functions. Memory-mapped files stay open and therefore remain locked.
Author of Total Commander
https://www.ghisler.com
Post Reply