On 8/12/2011 9:11 PM, Pris Matic wrote: > The singleton class implementation seems to be okay -- I can access > any other member / do any other class-related functions as expected > outside of using sqlite with any object. The singleton and sqlite are > compiled as a shared static lib and my main program and dynamic > libraries link to it.
Windows, or some Linux-y OS? I'm not sure about Linux, but on Windows, you end up with two copies of SQLite runtime, each with its own memory manager, its own locks, and so on. When you pass a connection handle created by one runtime to the other, mayhem ensues. I suspect you'd only get it to work if you build SQLite itself as a DLL. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

