Hi,
I just bought Basic4PPC version 6.01 and I have an error in compilated program with Errorlabel.
When the program runs on device or on desktop the errorlabel catches the error but this same program when it's compilated the errorlabel has no function?
Why?
Thanks for your help.
Best regards
I had a similar error when I complied my application the first time with the new optimized compiler. The error was solved after I moved the jump address out of a nested structure (if ... else ...) to the end of the sub.:sign0060:
And form my experience with the new compiler - you cannot have the error label outside of the sub that declares it (the old compiler allows such jumps)
An optimized executable doesn't raise an error when the image file is missing.
It shows a message instead.
Therefore ErrorLabel will not catch this error.
You should use FileExist instead of ErrorLabel:
B4X:
If FileExist("SomeImage") Then Image1.LoadPicture("SomeImage")