Thanks Sid, I've verified it is using System.FilePos.
Perhaps it is a file system corruption. I'm hoping to get a hold of the 40MB file to check it here. But I think I'll just trap the error using try/except. Thanks, Ross. -----Original Message----- From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of Sid Gudes Sent: Monday, 13 June 2011 2:47 PM To: Moderated List for the Discussion of Delphi Programming excluding Database-related topics Subject: Re: I/O Error 131 using FilePos 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 _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi