|
-
Apr 24th, 2016, 03:28 PM
#9
New Member
Re: Error past end of file
isnoend07,
I just joined VBForums and found this old post of yours. I'm having the same issue that looks like you might have been having and wasn't sure if you could be of any help. The app that I've created is distributed to an OEM's customers and is used to save & load operation parameters for the app The app may run for months without a customer having an issue and then it will pop up with an error 62 Input past end of file. Quite a while back after listening to a report of a user that experienced the problem I now output the same data to a second file that can be recalled if the error 62 comes up to input the data from the 2nd file and recreate the first file. The problem I now have is it looks like it is also happening to the 2nd file. Both files are opened at the same time in the same procedure. Like you, this has been a very difficult thing to pin down as I only hear about it once every 3-4 months.
(Below is an example of my code, I'm using file numbers instead of FreeFile)
Open x.dat for Output as 1
Open x2.dat for Output as 2
Write #1, data, data, data
Write #2, data, data, data
Write #1, data, data, data
Write #2, data, data, data
etc
Close 1
Close 2
Thanks in advance for any ideas.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|