Hey Guys,
Yesterday I added FTP functionality to my app and it caused strange behavior for existing, proven code.
The app behaves normally until the FTP communication is initilised and ended. After this, a panel click even I have raises an error claiming that a timer cannot be cast as a panel.
This is the routine that causes the error:
I added the IF statement regarding the nature of the sender to see if I could quickly patch the bug. This prevented the errors, but forces me to double click (in quick succession) the panel in order to pass the correct sender.
Anyone have any thoughts?
Thanks
Yesterday I added FTP functionality to my app and it caused strange behavior for existing, proven code.
The app behaves normally until the FTP communication is initilised and ended. After this, a panel click even I have raises an error claiming that a timer cannot be cast as a panel.
B4X:
java.lang.ClassCastException: anywheresoftware.b4a.objects.Timer cannot be cast to android.view.ViewGroup
This is the routine that causes the error:
B4X:
If loadedfile = "" Then
CallPromptBox("You must save your program to take pictures. Save now?", False, "ForceSave", False)
Return
End If
If QWERTYPanelBackground.visible = True Then txtOffsetsCommentBox_EnterPressed
Dim panel1 As Panel
If Sender Is Panel Then
panel1 = Sender
Else
Return
End If
intCameraSelected = panel1.Tag
I added the IF statement regarding the nature of the sender to see if I could quickly patch the bug. This prevented the errors, but forces me to double click (in quick succession) the panel in order to pass the correct sender.
Anyone have any thoughts?
Thanks