[PyQt] Sql Model Segfault

Linos info at linos.es
Fri Oct 26 16:49:35 BST 2007


Hello all,
	i have a segmentation fault when i close the dialog i am using to test my sql model (using qdialog.accept in
a button or exiting with escape i have the same error), i have compiled pyqt and qt with debug support and i
have this with gdb:


----------------------------------------------------------------------------------------
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/python /home/skuda/Desktop/trunk/listviewtablemodel.py
[Thread debugging using libthread_db enabled]
[New Thread 0xb7cf36c0 (LWP 11172)]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
0 255
QSqlDatabasePrivate::removeDatabase: connection 'maxdb' is still in use, all queries will cease to work.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7cf36c0 (LWP 11172)]
0xb6111c0f in QODBCPrivate::isStmtHandleValid (this=0x81da880,
    driver=0x81b91c0) at ../../../sql/drivers/odbc/qsql_odbc.cpp:146
146     bool QODBCPrivate::isStmtHandleValid(const QSqlDriver *driver)
Current language:  auto; currently c++

----------------------------------------------------------------------------------------

the only operation i am doing is a select in the model, i load the data in a list of python objects, i can
view all the data in the table without problem but when i close the dialog i get this error, what can be the
problem?



More information about the PyQt mailing list