I'm experiencing this strange crash.
Application that use to work fine with previous B4A versions, will not run when compiled with B4A 9.8 or B4A10.
It stops on "wait for (senderfilter)" execution.
Here is an example of the running code:
error message returned is
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/com.watertech.main/files/watertech.db
I searched the forum but i couldn't fine any thread facing same issue.
can someone suggest a possible solution...?
Application that use to work fine with previous B4A versions, will not run when compiled with B4A 9.8 or B4A10.
It stops on "wait for (senderfilter)" execution.
Here is an example of the running code:
Example:
For Each records() As Object In res2.Rows
' some code
' ----
' ----
'
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, ...))
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)
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: /data/user/0/com.watertech.main/files/watertech.db
I searched the forum but i couldn't fine any thread facing same issue.
can someone suggest a possible solution...?