Following a regular Windows updates rollout the following code began throwing a "user breakpoint" error while running under debug, even though I had no breakpoints set:

QSqlDatabase trdb = QSqlDatabase::addDatabase(DBDRIVER);

This line has been working since the app was created last spring and hasn't been changed. The compiled exe starts and works fine but throws an error when closed. Running under debug the first error occurs when the QOCI attempts to create an environment and the second error occurs when it attempts to close the environment that it couldn't open in the first place. This info I learned because running in debug it breaks on line 1732 of qsql_oci.cpp when the app opens, and on line 1774 when the app closes. The executable only throws an error when the app closes.

Strangely, the app can read and write to the oracle tables without problems. Using debug I determined that the break is exactly at the line highlighted in red. When I put a try - catch around it that line still executes and breaks, but the catch doesn't catch it.

I am still running 4.3.2 and have not changed either my Oracle Instantclient 10.2 driver or the qsqloci.dll.

Here is most of the main.cpp:
Qt Code:
  1. #define DBDRIVER "QOCI"
  2. #define DBHOST "orcdev"
  3. #define DBNAME "orcdevdb"
  6. int main( int argc, char * argv[] ) {
  7. QString lockFileName = QDir::currentPath();
  8. lockFileName.append("/JLK_Lock.txt");
  9. QFile file(lockFileName);
  10. if (file.exists()){
  11. exit(1);
  12. }
  14. QString strRejected = "";
  15. QApplication app(argc, argv);
  16. app.setQuitOnLastWindowClosed(false);
  17. [COLOR="Red"]QSqlDatabase trdb = QSqlDatabase::addDatabase(DBDRIVER);[/COLOR]
  18. trdb.setHostName(DBHOST);
  19. trdb.setDatabaseName(DBNAME);
  20. trdb.setUserName("jlkreps");
  21. trdb.setPassword("secondla");
  22. if ( ) {
  23. timerecs trec;
  25. app.setQuitOnLastWindowClosed(true);
  26. return app.exec();
  27. } else {
  28. strRejected = QString("Reason: %1").arg(trdb.lastError().text()).toLatin1();
  29. QMessageBox::information(0,"Login Rejected!",strRejected,
  30. QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton);
  31. exit(2);
  32. }
  33. }
To copy to clipboard, switch view to plain text mode 

Anyone else having a problem like this following an MS update roll out, or am I alone?