alessandromi

Results 4 comments of alessandromi

Hi, we changed the Qt version from 5.9 to 5.11. Now there is a problem with your thread pool. In the new function of Qt QSqlDatabasePrivate::database(const QString& name, bool open)...

No, sorry your information doesn't matter. I'm telling you that the use of currentThreadId in m_lstDbByThread list (in your QxSqldatabase.cpp file) is wrong because Qt checks now the pointer (in...

The problem is that the old connection of the old thread is still open, so qxorm keeps adding the database connections without close the old connections

Ok, I added this function void QxSqlDatabase::removeDatabaseByThread() { QxSqlDatabase::QxSqlDatabaseImpl * pImpl = QxSqlDatabase::getSingleton()->m_pImpl.get(); QMutexLocker locker(& pImpl->m_oDbMutex); Qt::HANDLE lCurrThreadId = QThread::currentThreadId(); if (! pImpl->m_lstDbByThread.contains(lCurrThreadId)) { return; } QString sDbKey = pImpl->m_lstDbByThread.value(lCurrThreadId);...