I have two large files, both 2,877,913,471 bytes of binary stuff. Only a few bytes differ between them, just after the start of the files: 1 byte at 0x23, and 3 bytes at 0x27.
When I use the File Comparator (that I cannot live without!), the first difference is found. But: the second is not! It is not in the Difference list, Alt-Down does not go there, and clicking on it also does nothing. However, the difference *is* highlighted (at least in the right pane, I cannot really distinguish the dark blue in the left).
If I truncate both files to under 2Gb, it does not happen: both differences are found.
I created two large files that have the same problem. I tried to attach them, but even 7-zipped both come larger than 1 Mb...
Binary File Comparator seems to miss a difference
Binary File Comparator seems to miss a difference
Groente, Michel.
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
Re: File Comparator misses a difference
Assuming that this has to do with the (large) file size itself, this utility may help in creating a BIG FILE. (Which you could then make a simple byte change with a hex editor, or the like.)
.)
(Now if I happened to have anywhere close to 4 GB of free disk space, I'd try it myselfBIGFILE.ZIP
Creates a large file with desired size; useful to force other files to the end of the disk, e.g. container files of compressed drives and temporary fill of drives >2GB to fix problems with install-software on very large drives with more than 2GB free space

WinXP Pro SP3 or Win7 x86 | SS 2.54
Re: File Comparator misses a difference
I just e-mailed the files to Jan.
BTW, you do not need 4Gb of disk space, if you use NTFS compression: that saves almost half of it.
BTW, you do not need 4Gb of disk space, if you use NTFS compression: that saves almost half of it.

Groente, Michel.
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
Re: File Comparator misses a difference
Thank you!
-
- Plugin Developer
- Posts: 707
- Joined: 08 Dec 2005, 14:33
- Location: Prague, Czech Republic
- Contact:
Re: File Comparator seems to miss a difference
Uh, it took me a long time to notice that the window title says "... Computing Differences".mdruiter wrote:I have two large files, both 2,877,913,471 bytes of binary stuff. Only a few bytes differ between them, just after the start of the files: 1 byte at 0x23, and 3 bytes at 0x27.
When I use the File Comparator (...), the first difference is found. But: the second is not!
It is a feature by design that needs to be changed: When the files are being compared as binary, the first difference is found (and shown in the "Differences" combobox). Then the rest of comparing is moved to a background thread - you can (reasonably) work with the FC window while the remaining differences are being calculated in background. When *everything* is compared (i.e. all 4GB retrieved from HDD), the Differences combobox and window title get updated. I.e. it is not a question of less or more than 2 GB, but the time linearly grows with the size of the files.
The combobox should be updated on the fly. I will fix it for the next release of Salamander.
Re: File Comparator seems to miss a difference
Ah! Great feature, but very much disguised... I think at least the combobox should say "Computing more differences" too.
Thanks for clarifying.
Thanks for clarifying.
Groente, Michel.
-
- Plugin Developer
- Posts: 707
- Joined: 08 Dec 2005, 14:33
- Location: Prague, Czech Republic
- Contact:
Re: File Comparator seems to miss a difference
Fixed for the next release of Salamander.Jan Patera wrote:The combobox should be updated on the fly.