I am getting a strange error when executing my program. I have data in a simple table, and when I prepare a statement, it prints "BDB0113 Thread/process 6428/5360 failed: BDB1507 Thread died in Berkeley DB library". However, the program continues execution without issue. It seems like an important error message though, and I would like to understand what is happening.
I think I might have corrupted my database some how. Does anyone know what might cause this? I have a test program that can reproduce it. The test program is unremarkable, I think the database was previously corrupted. My overall program is too complex to post here. But maybe someone can give a clue as to how I am misusing the database.
Connecting to DB:C:\dev\SQLite\testDB\DKTDB.sqt
Database connected successful C:\dev\SQLite\testDB\DKTDB.sqt: BDB0113 Thread/process 6428/5360 failed: BDB1507 Thread died in Berkeley DB library
0 : not an error
100 : unknown error
| TABLE_ID : NUMBER | TABLE_TYPE : VARCHAR2(40) | TABLE_NAME : VARCHAR2(60) | BASIN_AREA : FLOAT(63) | X : FLOAT(126) | Y : FLOAT(126) | REMARK : VARCHAR2(200) |
| 1| UNKNOWN| TableAwesome| 20000.000000| 100.000000| 200.000000| NULL|
Database closed successfully
//Sorry it looks funky on the forum
I think this error is related to the database not being closed with the sqlite3_close(_db); call. Since this is a work in process, I was getting crashes all the time. I went over my code to ensure that this will be called no matter what, and I have not had the problem since.