PDA

View Full Version : QCoreApplication And QSqlDatabase



ball
24th May 2006, 01:03
When I make a QCoreApplication console based application I want to use the QtSql modules for my work to do database access. Everything works fine for this, however when I press the 'X' button in the top-right corner of the console window to close the console program, it prompt for 'Access Violation'. From debug mode in Visual Studio, it shows that the problem is from the 'close()' function in 'QSqlDatabase' source file.

Anyway can help me solve this? Thanks.

zlatko
24th May 2006, 07:58
Can we look in your code ? ;)