An unnamed file was not found [OK]

Posted by WillFa on Thu 07 Aug 2008 10:45 PM — 4 posts, 16,561 views.

USA #0
I get this error about twice a day. When you click on ok, life goes on... no problems. It happens whether I'm active or idling, and I haven't found a way to reproduce it.
This happens on version 4.34


Don't you love bug reports like this, Nick? :)
Amended on Thu 07 Aug 2008 10:46 PM by WillFa
Australia Forum Administrator #1
The old unnamed file trick, eh?

See:

http://www.gammon.com.au/forum/bbshowpost.php?id=4964

http://www.gammon.com.au/forum/bbshowpost.php?id=3921

USA #2
Ahh, thank you. Yes there is a dash in the world name. It doesn't happen on every save attempt tho, which is interesting since I'm calling Save() in various places in my scripts.

Any ideas why a dash in the file name causes the error?
Australia Forum Administrator #3
No I haven't, and it doesn't seem to be totally consistent. The error message itself seems to comes from the MFC libraries if the filename is actually empty. How that could come about, I don't know.

Maybe the Save () in the scripts somehow sends an empty file name, or one with a single space, that gets removed and is then considered empty. Just a guess.