i have an fts1 query that if i perform it and then close the database, i get
the above error.
i looked in and it seems like a query usually calls:

vm = compile(sql);
ret = _sqlite3_step(vm);


i noticed that the pointer to the vm is stored in the db struct as well.
in this particular query, the call to _sqlite3_step causes the db's pVdbe
pointer to change from that of the vm to something else.
that something else looks good and the query works just great, but when
trying to close the database later (after exhausting the resulting rowset) i
get the error.
after exhausting the rowset i call _sqlite3_finalize on the variable vm from
the code above, because that's what i was working on. after i do that,
db->pVbde continues to point to a vbde structure, and that's what causes the
'close' call to fail.

any idea what may be causing this ?

Reply via email to