[Qt-interest] Application crashes while using sqlite3_enable_load_extension
Christoph Krämer
christoph at christophkraemer.de
Tue Mar 10 09:00:19 CET 2009
Hi,
Im trying to use Qt to load extensions form my SQLite Database.
Unfortunately my app always crashes when I try to use sqlite3 that was
created by
QVariant v = db.driver()->handle();
if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*")==0) {
// v.data() returns a pointer to the handle
sqlite3 *handle = *static_cast<sqlite3 **>(v.data());
if (handle != 0) { // check that it is not NULL
sqlite3_enable_load_extension(handle,1);
}
}
Thanks
Chris
More information about the Qt-interest-old
mailing list