[Qt-interest] Driver not loaded...

Eric Clark eclark at ara.com
Fri Apr 1 23:22:53 CEST 2011


Thanks Scott! That seemed to work. I would suggest that something about this should be put in the documentation though. The docs seem to say that threading is safe and that is about it.

Eric

From: qt-interest-bounces+eclark=ara.com at qt.nokia.com [mailto:qt-interest-bounces+eclark=ara.com at qt.nokia.com] On Behalf Of Scott Aron Bloom
Sent: Friday, April 01, 2011 3:31 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Driver not loaded...

Create another QSqlDatabase on the thread.. and it should work..

Each thread needs its own QSqlDatabase.

Scott
From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com [mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On Behalf Of Eric Clark
Sent: Friday, April 01, 2011 1:09 PM
To: Qt Interest (qt-interest at trolltech.com)
Subject: [Qt-interest] Driver not loaded...

Hello All,

I have an application that uses an SqLite Database. I can open the database just fine, write to it, and read from it without problems in most cases; however, when I try to open the database on a different thread than the one that it was created on, I always get an error. And the error always says that the drive ris not loaded. Can anyone tell me why this is happening? Or what I can do to fix it? According to the documentation, threading should not be a problem.

Thanks,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110401/6f69bc96/attachment.html 


More information about the Qt-interest-old mailing list