Hi, Don't know yet if this is fixed in the latest version, but I thought I would bring it up anyway.
We are using 3.2.2 library on windows. Open a database If you then attach another database - sqlite3_exec() Then step a select query, combining some info from tables from both database - sqlite3_prepare() - sqlite3_step() sqlite3_step() ... But do not keep going till EOF. Ie. stop before sqlite3_step() returns SQLITE_DONE. Eg do 3 rows out of 10. Then detach the database - sqlite3_exec() It will crash here in at line 2218 in btree.c: pCur->pPrev->pNext = pCur->pNext; Work arounds are to call sqlite3_finalize on the query (to cleanup) before detaching, or only selecting the top N in the first place. I don't know the internals well enough to fix it myself.. Regards, Damian -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date: 31/08/2005