Thanks for your response Chris.

Is there a way to find out what components are
compiled in at runtime?

I built sqlite myself and I did turn on that
macro, but I want to double check everything
at runtime.  Maybe throw an error if
multi-threading support is not available in
the DLL.

Is there a way to detect multi-threading
support at runtime?

Thanks again,
Kervin


Chris Schirlinger wrote:
I am using SQLite 3.0.8 in a Win32 threaded
environment.

I keep getting random "Database schema has changed"
errors even though I am using thread local
storage to make sure sqlite3_open() gets called
on each thread and a there is a sqlite3* per thread.

Has anyone had any luck with resolving SQLITE_SCHEMA
errors in a threaded environment?


The docs for SQLite mention that you need to specifically compile the libs (DLL) with the THREADSAFE preprocessor macro set to 1 for you to be able to use SQLite in threads

Not sure what the DLL's on the web site are compiled with, perhaps that's the issue?








Reply via email to