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
File compare locks big files
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com