Re: fclose() ?
- From: David Lowndes <davidl@xxxxxxxxxxxxxxx>
- Date: Sat, 16 Apr 2005 11:07:02 +0100
>I have two processes; A and B. Process A creates a file, and then closes
>the file. After Process A closes the file, Process B is spawned (from
>Process A).
>Process B tries to read the file, that was created from Process A.
>However, when Process B tries to read the file, Process B generates a
>"File sharing access violation" error.
Jacques,
When you get this error in Process B, try adding a short delay and
then re-trying the operation. Does it eventually succeed?
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.
- Prev by Date: Re: COleDateTime ,SystemTimeToVariantTime Issues Questions
- Next by Date: Re: CFileDialog creates GDI objects and doesn't clean them up.
- Previous by thread: RE: Dragdrop from app to CD-RW in XP
- Next by thread: memory leak
- Index(es):
Relevant Pages
|