This is an implementation decision (by the sqlite library) not a bug.
You can use a REALSQLDatabase instance only in the thread that creates it. You can't share a REALSQLDatabase instance in multiple threads, the right way is to open the same database multiple times inside each thread.

---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/



On May 15, 2006, at 3:18 PM, Frank Bitterlich wrote:

Ouch.

Please report this, as I think it could cause a lot of trouble.

Cheers,
   Frank+++

Am 15.05.2006 um 14:54 schrieb Mark Lubratt:

Well, to answer my own question (and for posterity):

After further digging it would appear that the REALSQLDatabase implementation is compiled without THREADSAFE set. Therefore, all calls to the library must be from the same thread that called sqlite_open() (or the object's constructor I would presume). So, I moved the scope of my REALSQLDatabase object from the project level and made it internal to the thread and everything works now.

--

Günter Schmidt GmbH
Frank Bitterlich             eMail: [EMAIL PROTECTED]
Ben-Gurion-Ring 21           WWW:   http://www.gsco.de/
D-60437 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28





_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to