That is correct. It may be added in the future. Though you do not need to check for existence of files added to the Files tab. They will be there.
Well, I've run across a strange one. It's a simple subroutine:
sub Globals
Dim gif As GifDecoder
end sub
If File.Exists(File.DirAssets,"dino.gif") Then
Log("About_Sub - dino.gif does exist; loading 'dino.gif'")
Try
gif.Load(File.DirAssets, "dino.gif")
Catch
Log("About_Sub - Couldn't Load dino.gif for unknown reasons.")
ABOUT_COULD_NOT_LOAD_GIF = True
EndTry
EndIf
When I run it, it dies with a 'Can't find file'.
I then added code which copied the dino.gif file to DirDefaultExternal, tried loading it from there... and it works.
Why would I check for a file in the DirAssets folder, it says it is there. Then when it tries to use it for the GifDecoder library - not work if the file is in the DirAssets folder but work if the very same file is copied over to the DirDefaultExternal directory?
I thought maybe there was something corrupted in the Files or Objects folders; so I created a new Project, copied all things over to the new project. Did the same thing.
I would say that the DirAssets folder, it self, must have the wrong Permissions set on it, or something? Is there a way that I can have it delete the DirAssets folder completely and rebuild it? Or, is there some other thing that you can think of that would account for such a strange thing?
The GifDecoder.Load function just wants two strings to be passed to it, the Dir as a string, the text file name as a string.
The thing that is annoying is that most of the time it was working just fine. Only recently does it not allow the picture to be loaded.
The only thing I can think of would be that the function is being called twice, somehow? And so the GifDecoder Gif variable of type GifDecoder is already locked, so it can't load it again? Or, somehow the system has put a lock on the file, not released the lock, and thus doesn't let it do it again?
I'm stumped.
If the GifDecoder library was asking for a BitMap object, or something other than just two Strings, I would not be so stumped.
The fact that it has worked before, and just isn't working right now, also stumps me.
Any ideas? Why would it work if I copied the file to the DirDefaultExternal folder, but not if I try loading it from the DirAssets folder?
Where IS the DirAssets folder, anyways? I can't check to see what permissions it might have (although it's just reading the file, not writing the file, so why would permissions have anything to do with it?)
Picking at straws because I can't imagine a possibility.
As usual, the program is just too huge to send 30MB now. Hoping that something you know will jog me towards the right outcome. I guess I could just copy the file over to the DirDefaultExternal folder and always run it from there - but hate to allow strange things that are occurring to continue. That almost always runs into problems later down the road.