xsharp.eu • Reading Very Large files - Page 2
Page 2 of 2

Reading Very Large files

Posted: Fri Jun 17, 2022 4:54 pm
by robert
Chriis,
I think Arne is right. Most likely inside FGetS2 the runtime uses a 32 bit offset in a file that is 6 Gb. That will result in an overflow with unexpected results.

Robert

Reading Very Large files

Posted: Fri Jun 17, 2022 8:13 pm
by FFF
Hey, that was my first thought, too, but I was too timid to voice it... Thanks for confirming ;-)

Reading Very Large files

Posted: Fri Jun 17, 2022 11:48 pm
by Chris
Arne, Robert,

Ah, I am sorry, I completely misread Arne's message! I thought it was about memory size, while it was about file pointers. Summer here is not a good time for the brain to work :)
Of course it makes sense what you guys say, hadn't thought about this.

.