Given you have a user getting this error, can we assume the code normally works?

If so, is there a chance that the user has a file size greater than 2Gb? If so, they may be getting an overflow error. I think these routines use Int32 values so when they overflow, they will set the top bit and the value will go negative.

Peter

At 09:04 PM 6/11/2011, Ross Levis wrote:
I don't understand how this error can occur with FilePos.



I'm using the old Delphi I/O routines to read binary file.  A user is
receiving an I/O error 131 at a FilePos(File) function.  This error is
apparently ERROR_NEGATIVE_SEEK.



The file is opening successfully with a Reset() function.  FilePos is
suppose to return the current position, not physically seek inside the file.
Anyone have any ideas?



Thanks,

Ross.

_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi




_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to