The Beta is returning incorrect line numbers for errors in the Log in Debug mode, this code:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Dim F As Form
F.Show
End Sub