You need to clarify what you mean by 'module'. Data is not shared in DLL's (sperate memory space and all that..), each calling application will need their own copy of data initialized by a shared library. If you have a global variable in a dll and need to share this data across multiple processes, then you need to look into memory mapped files.
2008/7/25 Jacek Oleksy <[EMAIL PROTECTED]>: > 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 > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users