POV-Ray : Newsgroups : povray.windows : "Failed to open file: The operation completed successfully" : Re: "Failed to open file: The operation completed successfully" Server Time
26 Jun 2024 03:51:45 EDT (-0400)
  Re: "Failed to open file: The operation completed successfully"  
From: Mike Raiford
Date: 4 Jan 2005 08:40:20
Message: <41da9cc4$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.