iOS Question newbie B4i error

akinnovation

Member
Licensed User
Longtime User
Hi all,
I have copied the population app as tutorial for B4X.
When I execute my modified app I get an error
from Log:
Copying updated assets files (20)

Castelfiorentino*
Empoli*
Montaione*

SignalHandler 11
Error occurred on line: 74 (PreoptimizedCLV)
Signal - 11
Stack Trace: (
    "0   Otto test            SignalHandler + 120",
    "1   libsystem_platform.dylib            0x00000001d002429c 8D0BC890-4FB0-387B-9826-4EBB0812DC87 + 21148",
    "2   Otto test            -[b4i_preoptimizedclv _commit:] + 936",
    "3   CoreFoundation       A408A063-A023-3AAA-A674-0FF01607F818 + 1240532",
    "4   CoreFoundation       A408A063-A023-3AAA-A674-0FF01607F818 + 9172",
    "5   Otto test            +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1300",
    "6   Otto test            -[B4IShell runMethod:] + 448",
    "7   Otto test            -[B4IShell raiseEventImpl:method:args::] + 1648",
    "8   Otto test            -[B4IShellBI raiseEvent:event:params:] + 1580",
    "9   Otto test            -[B4IDebugResumableSub resume::] + 356"
)
the row with * are the data from DB.
The code I execute is
Code:
Sub SQLQuery(Query As String)
    CLVSearchResults.Clear 'Clear the CustomListView

    Dim SenderFilter As Object = B4XPages.MainPage.SQL.ExecQueryAsync("SQL", Query, Null)
    Wait For (SenderFilter) SQL_QueryComplete (Success As Boolean, rs As ResultSet)
    If Success Then
        
        Do While rs.NextRow 'Loop through the results
            'Ceate your custom type (on a per line basis)
            Query=rs.GetString("descr")
            Log(Query)
            PCLV.AddItem(260dip, XUI.Color_White, CreateRowSearchResultData(Query, Query,Query))
        Loop
        PCLV.Commit
        rs.Close
    Else
        Log(LastException)
    End If
End Sub
the error is generated from the PCLV.Commit execution.

The same error is generated from the original app if I put a breakpoint on PCLV.commit and wait for some second

Thank you to all
Marco
 

hatzisn

Well-Known Member
Licensed User
Longtime User
You are sure you have downloaded the PreoptimizedCLV library, right? If yes which version?
 
Upvote 0
Top