My app writes several ascii files (I use CStdioFile) and
generally things work fine. But I have intermittent
mysterious problems where things fail, and the CFileException that comes back has "sharingViolation" in
its "m_cause" member.
Looking at some doc for this it says:
"SHARE.EXE was not loaded, or a shared region was locked"
Now my file is a simple file on the local disk, not in
a shared folder or having anything to do with sharing as
far as I can tell. I'm on XP (haven't seen it on other
computers, but who knows...)
Do you get a sharingViolation is the file is still open
from a previous action? But I think I always close the
file, so I don't get what the problem can be.