When ever I enter a routine that has a variant as a parameter or on the
stack the debugger crashes.
Following is small routine that exhibits the problem.
That is if I put a break point any where in the routine.
Does anybody have clue as to what is going on?
thanks
Jeffrey
void PreferenceMgr::preference(const int type, const QVariant& value)
{
try
{
bool bRet = false;
QSqlError sqlError;
QString sqlStmt;
ESQL_QUERY(query, m_pMetaModelDbMgr->metaModelDb());
// Set the preference.
sqlStmt.sprintf(
"update Preference"
" set Value = %s"
" where Type = %d",
value.toString().toAscii().data(),
type);
bRet = query.exec(sqlStmt);
if (bRet == false) {
sqlError = query.lastError();
THROW_EXCEP_WITH_MESSAGE(sqlError.databaseText());
}
}
catch (Exceptions& e) {
Exceptions::exceptionHandler(tr("PreferenceDlg::preference (set)"), e);
}
catch (...) {
LOG_INFO(tr("Unknown exception"));
qDebug("PreferenceDlg::preference (set) - unkown exception");
}
}
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator