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.
Bookmarks