[Qt-interest] Problem with ODBC Plugin
Lodron, Gerald
Gerald.Lodron at joanneum.at
Wed Jun 8 13:58:15 CEST 2011
quite sure, i (currently) only use two implemented functions:
Login (creates sql objects, makes a select from users and compares username and password with data base entry, stores current user internally, deletes sql objects, returns true if sucessed)
Logout (deletes all internal user references)
Both functions are in my dll, every SQL ODBC object is generated and destroyed in the DLL only. When i write Login followed by Logout and exit my full app i get this behaviour, when i comment Login and Logout it works. In the minimalistic programm i make the same and it works perfectly so if i would forget to destroy objects it should be also happen in this one....
best regards
________________________________
Von: qt-interest-bounces+gerald.lodron=joanneum.at at qt.nokia.com [mailto:qt-interest-bounces+gerald.lodron=joanneum.at at qt.nokia.com] Im Auftrag von Tony Rietwyk
Gesendet: Mittwoch, 8. Juni 2011 13:49
An: qt-interest at trolltech.com
Betreff: Re: [Qt-interest] Problem with ODBC Plugin
Sent: Wednesday, 8 June 2011 20:30 PM
Hi
i use the ODBC plugin for a dynamic library which talks to a database. On a minimalistic main() programm everything works but when i integrate the dll to my bigger application i have the problem that the .exe of my application runs until program exit (so my programm does not close correct). I debugged the main() function and the function is returned without error code. After executing main() i came to an endless loop of ODBC Qsql_odbc.cpp: line 1930: r = SQLDisconnect(d->hDbc); So i cannot post the whole code from my bigger application and everything works on my minimalistic example.
Does anyone has a clue where i could find the error?
best regards,
Hi,
Are you sure that all of your QSqlDatabase objects have been destroyed before the main routine exits in your full app?
Hope that helps,
Tony.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110608/4eaaffcf/attachment.html
More information about the Qt-interest-old
mailing list