MikeMio
2007-10-17 19:17:02 UTC
Hi,
I have an MFC application. 2 users (using XP) are reporting that they often
get an "an unnamed file was not found" error of when saving a document.
During a save, it looks like the MFC writes the document to a mirror file
(e.g. MFCxx.tmp) then calls ReplaceFile() (from CMirrorFile::Close()) to
replace the original version of the doc with the mirror file. When the error
occurs, the document is being saved correctly to the original file name but
the mirror file is not removed. That suggests the error is occurring inside
the ReplaceFile() function which seems odd.
My question is: Any idea what this error means and is there anything that my
application could be doing to cause this?
I am thinking that some external program (driver, anti-virus etc) might be
causing it but could it be a bug in the MFC code?
Thanks.
I have an MFC application. 2 users (using XP) are reporting that they often
get an "an unnamed file was not found" error of when saving a document.
During a save, it looks like the MFC writes the document to a mirror file
(e.g. MFCxx.tmp) then calls ReplaceFile() (from CMirrorFile::Close()) to
replace the original version of the doc with the mirror file. When the error
occurs, the document is being saved correctly to the original file name but
the mirror file is not removed. That suggests the error is occurring inside
the ReplaceFile() function which seems odd.
My question is: Any idea what this error means and is there anything that my
application could be doing to cause this?
I am thinking that some external program (driver, anti-virus etc) might be
causing it but could it be a bug in the MFC code?
Thanks.