Compare by Contents says files are different when equal

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

Post by *ghisler(Author) »

The internal compare tool isn't made to compare such huge files interactively. Why? After finding a difference, it maps the two files into memory and then compares them as if they were two big memory blocks. Unfortunately this fails if the memory is already very fragmented (a reboot may help then), or the two files together are too large to be mapped into memory.
Author of Total Commander
https://www.ghisler.com
RickyGold
Junior Member
Junior Member
Posts: 18
Joined: 2008-09-23, 13:51 UTC

Post by *RickyGold »

Clear and shared, thanks for reply.

On the other hand, can we say that in case of identical files, even if very big, we are never going to encounter the "not enough memory" message ? (and by the way, what is the maximum dimension of them ?)

And as last, someone knows how the external compare toll add-on behave in such cases ?

Thank you a lot.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3895
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

how the external compare toll add-on behave in such cases ?
The external tool gets the filenames only.
So it is up to your tool how to handle it ...
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50810
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

On the other hand, can we say that in case of identical files, even if very big, we are never going to encounter the "not enough memory" message ?
Yes, that's correct, TC compares the files byte by byte before trying to open them in the interactive compare tool - which will only happen if TC finds a difference. Otherwise it will show "The two files are identical!".

The maximum depends on the amount of RAM you have, but cannot exceed about 2 GB (both together) in the best case.
Author of Total Commander
https://www.ghisler.com
RickyGold
Junior Member
Junior Member
Posts: 18
Joined: 2008-09-23, 13:51 UTC

Post by *RickyGold »

Brilliant, THX !!!

:)
Post Reply