Re: fclose() ?



>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
.



Relevant Pages