Hello, I'm using VC++.NET 2003 & Windows XP SP2. I have following problem with version 3.6.0:
sqlite configuration is being hold in a global variable sqlite3Config. My application uses a dll, which initializes sqlite database. Dll's copy of the sqlite3Config variable is initialized properly and sqlite calls from inside the dll work fine. However, the main module's copy of sqlite3Config is still empty and when I try to use the database from the main module a crash occurs in sqlite3_mutex_enter. It can be avoided by initializing sqlite in main module (e.g. by opening a database and closing it). The question is: can I use one database connection (one sqlite3 pointer) in multiple modules? In such case database operations from main module and from dll will be using different sqlite3Config variables, is it safe? Other solution is to perform all sqlite operations in one module or to open new db connection for each module. And btw: v3.5.9 works fine... Am I missing something here? Please correct me if I'm wrong... Thanks, Jacek _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

