CREATE TABLE IF NOT EXISTS base1 (
Nct2 integer(9) NOT NULL,
R11 integer(2),
R2 integer(2),
R3 integer(2),
R4 integer(2),
R5 integer(2),
R66 integer(2),
Qr11 integer(2),
Qr2 integer(2),
Qr3 integer(2),
Qr4 integer(2),
Qr5 integer(2),
Qr66 integer(2),
Rnx1 integer(2),
Rnx2 integer(2),
Rnx3 integer(2),
Rnx4 integer(2),
Rnx5 integer(2),
Rnx6 integer(2),
R12 integer(3),
R23 integer(3),
R34 integer(3),
R45 integer(3),
R56 integer(3),
P12 integer(2),
P23 integer(2),
P34 integer(2),
P45 integer(2),
P56 integer(2),
Rr1 integer(2),
Rr2 integer(2),
Rr3 integer(2),
Rr4 integer(2),
Rr5 integer(2),
Rr6 integer(2),
Nctr integer(9),
P16 integer(5),
Rr12 integer(2),
Rr22 integer(2),
Rr32 integer(2),
Rr42 integer(2),
Rr52 integer(2),
Rr62 integer(2),
id integer PRIMARY KEY AUTOINCREMENT,
Krr16 integer(5),
Kkrr16 integer(9)
);
and the code in the Thread Run is :
[code]Var fTot As RowSet
Var sql As String
sql = “SELECT Rr12, Rr22, Rr32, Rr42, Rr52, Rr62, Nct2, Kkrr16 FROM base1 WHERE Nct2 > 3017 AND Kkrr16 = 0”
Try
fTot = bDB.SelectSQL(sql)
If fTot <> Nil Then
pTot = fTot.RowCount
pSt = 0
Me.AddUserInterfaceUpdate("pSt":pSt)
Me.AddUserInterfaceUpdate("pTot":pTot)
End If
Catch err As DatabaseException
Break
End Try[/code]
The funny part is that it says on the website under SQLiteDatabase that
[quote]Threading
SelectSQL and ExecuteSQL statements do not block when called from within Threads.[/quote]
But the app freezes, it brings the CPU to 99%, ram around 2.3 GB then decreases and then crashes with that error. But on this time the app is unresponsive and I get that spinning wheel and this is in a thread.
I tried same project in 2019R3.1 and same error .