I meet an Assert Error in file IxValidatorX.cpp, line 78, when running an insert-query.
ASSERT: "m_pClass" in file ../QxOrm/src/QxValidator/IxValidatorX.cpp, line 78
code:
- Code: Select all
template<class T>
void dbInsert(QList<T> &daoList){
QSqlDatabase db = qx::QxSqlDatabase::getDatabase();
QSqlError sqlError = qx::dao::insert(daoList, &db);
...
}
The assert occurs, not every time, when qx::dao::insert(daoList, &db) is called.
dbInsert(QList<T> &daoList) may be called in several threads. daoList has been checked already.
Could you please tell me what's happening and how to fix it?
Thank you!