|
![](/i/fill.gif) |
Tor Olav Kristensen wrote:
>
> If I close POV-Ray and then delete a file that I had open
> in an edit window and then start POV-Ray again, I get the
> following odd message:
>
> "Failed to open file: The operation completed successfully"
>
> Does this mean that POV-Ray had an intention to fail ?
>
A simple explanation of this:
the file open function probably returned a failure code, POVRay
subsequently attempts to display an error message by going to windows to
get the message for the return of GetLastError() [which gets the error
code for the last operation]
"The operation completed successfully" is the text for error code 0 (no
error)
Either of two things happened:
A) An operation between the error-causing function occured, clearing the
last error.
B) The file open function somehow failed to set an error code.
[A] is much more likely, if a C Library function like fopen is used. it
could have accidentally reset the error code by doing some cleanup.
--
~Mike
Post a reply to this message
|
![](/i/fill.gif) |