I've recently upgraded to 4.2.2 But now i'm getting heap memory warnings. Can't seem to see whats causing it. Any ideas?

Could this have anything to do with linking c:\Qt\4.2.2\lib\QtSql4.lib?

Harvey

################################################## #######
db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName(hostName);
db.setPort(port);
db.setDatabaseName(databaseName);
db.setUserName(userName);
db.setPassword(password);
.
.
.
.

QString test = db.lastError().text();
qDebug() << "DB open failed: " << test; // OK

qDebug() << "DB open failed: " << db.lastError().text(); //Causes error to flag see below

################################################## #######
Debug errors:
HEAP[foo.exe]: Invalid Address specified to RtlValidateHeap( 00B60000, 00B7A108 )
Windows has triggered a breakpoint in foo.exe.

This may be due to a corruption of the heap, and indicates a bug in foo.exe or any of the DLLs it has loaded.