I've started writing my first wrappers for SQLite compiled inside the
Frontier Kernel and I've run into a snag. I have one verb that calls
sqlite3_open. It returns successfully and sets the db properly. If, in that
same routine, I call sqlite3_close, it works successfully.

But, if I return from that verb and then call sqlite3_close in a separate
verb (all in the same thread), I get the "library routine called out of
sequence" error.

I'm building this on Windows (VC2K3) and everything else seems fine. I've
read about this problem occuring with a THREADSAFE conflict, but I can't
tell if I should disable threadsafe (or if I even can, in Windows) or if I'm
missing something else.

Any help would be appreciated. Thanks!


-- David

Reply via email to