Hi all.
I have a strange error SignalHandler 11.
Please see the attached project.
The error happens in this code
This is a code of the page where I use clsMenu class
This error happens when I click on the menu in the top right corner. I tested it in debug mode only.
If I click Clean Project and run the project again - it woks.
Then I added a one more line into pg_Appear sub and the error happens again.
If I click Clean Project again and run the project again - it woks.
My IDE is 10.30
Thank you.
I have a strange error SignalHandler 11.
B4X:
SignalHandler 11
Error occurred on line: 82 (clsMenu)
Signal - 11
Stack Trace: (
"0 Menu Test SignalHandler + 108",
"1 libsystem_platform.dylib 0x00000002b6ea21b8 3EDB2C1D-BF74-39F3-A9F6-B8C78BD66DD5 + 16824",
"2 Menu Test -[b4i_clsmenu _menu_click::] + 612",
"3 Menu Test -[b4i_dashboard _btnfeedback_click] + 416",
"4 CoreFoundation 101EB2F1-1915-34A0-8BC9-631D03753B84 + 407844",
"5 CoreFoundation 101EB2F1-1915-34A0-8BC9-631D03753B84 + 407464",
"6 Menu Test +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 776",
"7 Menu Test -[B4IShell runMethod:] + 320",
"8 Menu Test -[B4IShell raiseEventImpl:method:args::] + 932",
"9 Menu Test -[B4IShellBI raiseEvent:event:params:] + 1008"
)
Please see the attached project.
The error happens in this code
B4X:
public Sub Menu_Click(btn As B4XView)
Try
aspm_main.MenuViewGap = aspm_main.TriangleProperties.Height -50dip
aspm_main.ShowTriangle =False
aspm_main.TriangleProperties.Left = 100dip/2 - aspm_main.TriangleProperties.Width/2
aspm_main.OpenMenu(btn,200dip)
Catch
Log("Menu_Click " & LastException.description)
End Try
End Sub
This is a code of the page where I use clsMenu class
B4X:
'Code module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Dim pg As Page
Dim Menu As clsMenu
Private btnFeedBack As Button
End Sub
Public Sub Show
Try
If pg.IsInitialized=False Then
pg.Initialize("pg")
End If
pg.RootPanel.LoadLayout("Dashboard")
Main.NavControl.ShowPage(pg)
Catch
Log(LastException)
End Try
End Sub
Private Sub pg_Appear
Try
Menu.Initialize(pg.RootPanel)
Catch
Log(LastException)
End Try
End Sub
Private Sub btnFeedBack_Click
Try
Menu.Menu_Click(btnFeedBack)
Catch
Log(LastException)
End Try
End Sub
This error happens when I click on the menu in the top right corner. I tested it in debug mode only.
If I click Clean Project and run the project again - it woks.
Then I added a one more line into pg_Appear sub and the error happens again.
If I click Clean Project again and run the project again - it woks.
B4X:
Private Sub pg_Appear
Try
Menu.Initialize(pg.RootPanel)
Dim ABC as String
Catch
Log(LastException)
End Try
End Sub
My IDE is 10.30
Thank you.