Hello Erel,
I understand the mood of your reply and i'm very likely in the 99% group.
I wrote it to give an hint, as this behaviour appeared after recompiling the app with newly installed version.
Said that, any new version may include bugs, but my statement didn't intend to be a convinced affirmation.
Believe me, before i write for help to the forum, i try for days to find a reason that may be related to a problem in my code.
You didn't provide enough information here to help you. Where does the connection pool come from?
I'm not sure to understand your question. Connection Pool message comes from the unfiltered log. It refers to the sql connection to the local sql lite db file.
I must say that after that, i tried replacing the two, delete and insert, sql statements with a single replace one.
This seems to have removed the problem. and application do not crash any longer.
[CODE lang="b4x" title="Changed code"] For Each records() As Object In res2.Rows
' some code
' ----
' ----
' this statements caused crash
'Starter.sql.AddNonQueryToBatch("delete from users where badge = ?", Array As Object(ls_badge) )
'Starter.sql.AddNonQueryToBatch("Insert into users (rowid, cod_fiscale, ...) Values ( null,?,...)",Array As Object(ls_cod_fiscale, ...))
'no crash with
sql.AddNonQueryToBatch("replace into users (rowid, cod_fiscale, ... ) Values ( null,?,...)",Array As Object(ls_cod_fiscale, ... ))
sleep(0)
next
Dim SenderFilter As Object = Starter.sql.ExecNonQueryBatch("sql")
'never returns from following line
'although sometimes it does, i don't know why
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)[/CODE]