howard mentions: 21,447,483,647
MaartenJB says 10th of that: ~ 2,144,748,364
lucamar corrects howard's number: 2,147,483,647
crystal ball: predicts that MaartenJB is using
Position or
Seek with some wrong variable type. Something along:
var
SomePos: Integer; { 32bit system }
...
begin
...
FileStream.Position := SomePos; { or Seek }
The type of the variable is 4Byte signed type, limiting the range to 2GB on two different operation systems.
@
MaartenJB, use Int64. And pay some attention to the warning/hint the compiler had given you.