Other Compiler error: file not found [solved]

igodese

Member
Licensed User
Hi all, this morning I have a strange behaviour compiling my new App with the hosted builder. Note that the source file is identical to the one I compiled successfully yesterday.
I have such declaration in "Globals":
B4X:
    Dim fload As Bitmap ' file load background
and this code in "Application_Start":
B4X:
    fload = LoadBitmap(File.DirAssets, "from-disc.png")
When compiling, I receive this error (note that line #235 is the bitmap load):
Note that all files needed by the App are stored in the correct "Files" folder. Also note that this problem arised just this morning. Yesterday all was fine. I doubt that someone could have modified my environment during the night!
Any help will be welcome.
Thank you.
 
Last edited:

igodese

Member
Licensed User
It worked!
Thanks to both of you.

Probably, when you turn off the iPhone with an App loaded in debug mode, the folders involved are "locked" in some way. When you turn on again the phone "the day after", such lock prevents the use of the files in the "old folder". May be that a new one is created, but you can't use it until you don't remove the older by uninstalling the App.
This is just my opinion, no proofs that is correct!
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…