First thought is to run a CHKDSK on the hard drive to make sure the
file isn't corrupted.
Second thought is to see if FilePos() is multiply defined, change it
to system.FilePos() to force it to go to the system unit.
If neither of these, very curious, post the code so we can take a look.
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