I have a "Wait For Pane1_AnimationCompleted" in a sub, and it works as expected, except that if the event sub is not present, in this case, "Pane1_AnimationCompleted", the app crashes, with the following logs:
B4X:
Waiting for debugger to connect...
Program started.
An error occurred:
(Line: 56) End Sub
java.lang.Exception: Sub pane1_animationcompleted signature does not match expected signature.
public static void b4j.example.launcher_subs_0._pane1_animationcompleted() throws java.lang.Exception
class anywheresoftware.b4a.pc.RemoteObject,
with both, separeted and at the same time, they behave as expected. In diferent scenarios with wait for in the middle, at the end, one wait for for each call.
What are the steps to reproduce it? I've ran it and didn't see anything.
Note that you don't need that timer. Just call Sleep:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("UTILITY")
MainForm.WindowTop = -1000
MainForm.Show
Sleep(200)
MyLauncher.Initialize(MainForm)
End Sub
I forgot about the timer, it's there for another reason... Bring your mouse to the upper left corner of the screen, there's a 1x10px label there that will trigger the animation
Thank you! See this thread - https://www.b4x.com/android/forum/posts/525585/
I was never able to come up with a project that I could send Erel to reproduce this error, and I ended up rebuilding my code from the ground up to eliminate the problem - and for other reasons.