I have a code in B4A that i'm converting to B4I, so in B4A i'm using CLVNested, but in B4I it's not necessary.
I removed the CLVNested, but when e compile the app i get an error SignalHandler 11.
the logs to know the clv size always return 0 and a don't know why, so the error that i mentioned "SignalHandler 11", it's in line
because probably the clv size it's 0.
That's the error log
Am i adding corretly in clv? There is another thing to do to work the CLVs nesting?
I removed the CLVNested, but when e compile the app i get an error SignalHandler 11.
B4X:
Dim p As B4XView = XUI.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)
p.LoadLayout("layout_orc_pedido_parte1")
clvOrcamentoPedido.Add(p, "teste")
Log("size clvOrcamentoPedido: "&clvOrcamentoPedido.Size)
'EXTRA
Dim p3 As B4XView = XUI.CreatePanel("")
p3.SetLayoutAnimated(0, 0, 0, 100%x, 0.5%y)
p3.LoadLayout("layout_orc_pedido_parte2")
' p3.Tag = clvExtrasOrc 'must set the Panel tag like this <--- this is for B4A CLVNested, not needed in B4I
clvOrcamentoPedido.Add(p3, "nada")
Log("size clvOrcamentoPedido3: "&clvOrcamentoPedido.Size)
clvOrcamentoPedido.ResizeItem(1, clvExtrasOrc.AsView.Height)
the logs to know the clv size always return 0 and a don't know why, so the error that i mentioned "SignalHandler 11", it's in line
B4X:
clvOrcamentoPedido.ResizeItem(1, clvExtrasOrc.AsView.Height)
That's the error log
B4X:
SignalHandler 11
Error occurred on line: 4116 (PrincipalCervejaria)
Signal - 11
Stack Trace: (
"0 iBrew SignalHandler + 120",
"1 libsystem_platform.dylib 0x00000001ada14884 70F43BD5-061B-3579-8B83-69771FB61812 + 34948",
"2 iBrew -[b4i_customlistview _getpanel:] + 52",
"3 iBrew -[b4i_customlistview _resizeitem::] + 120",
"4 CoreFoundation 1B9B1E61-8CB4-3903-9870-402C3DE959BB + 1252384",
"5 CoreFoundation 1B9B1E61-8CB4-3903-9870-402C3DE959BB + 7472",
"6 iBrew +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608",
"7 iBrew -[B4IShell runVoidMethod] + 232",
"8 iBrew -[B4IShell raiseEventImpl:method:args::] + 1800",
"9 iBrew -[B4IShellBI raiseEvent:event:params:] + 1580"
)
Am i adding corretly in clv? There is another thing to do to work the CLVs nesting?