Re: vb application locks file
- From: erewhon@xxxxxxxxxx (J French)
- Date: Thu, 07 Sep 2006 12:07:31 GMT
On 7 Sep 2006 04:23:40 -0700, "davidwellan" <d.wellan@xxxxxxxxxx>
wrote:
I have resolved the 'input past end of file' error, thanks for the help
on that one. I basically did as you (Randy Birch) suggested and checked
that the file had something to read before reading it!!!
This has strangely reduced the crashing to a minimum, yet this error
occurred very infrequently (according to my log file) and wasn't always
the culprit of the app.'s failure.
I would still like to know if there is a way to force a specific file
to close?
We are about to re-write the system and I will use a copied file
solution and see if this will be more robust. We are also going to run
it on a new PC - this may have been the cause all along!
Do NOT use a copied file system
Make a temp file, close it and Rename it
A copied file turns up in the file system with a zero or non-zero
length (if an old one existed) long before it is ready to be read.
The rule is
1- reader deletes file
2- writer creates temp file
3- writer renames to real file
4- reader suddenly sees pristine file in readable state
One can fiddle with 1) - renaming is Ok
.
- Follow-Ups:
- Re: vb application locks file
- From: Bob O`Bob
- Re: vb application locks file
- References:
- Re: vb application locks file
- From: Randy Birch
- Re: vb application locks file
- From: davidwellan
- Re: vb application locks file
- Prev by Date: Re: Help with datediff.
- Next by Date: Re: List Forms (Odd Request)
- Previous by thread: Re: vb application locks file
- Next by thread: Re: vb application locks file
- Index(es):
Relevant Pages
|