I found that even just waiting for QMutex will trigger a statement. What can i do wrong?
QMutex mutex; SyncMgr::SyncMgr(QObject *parent) : QObject(parent) { moveToThread( &thread ); thread.start(); process = new QProcess( this); connect( process, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadyReadStandardOutput() ) ); connect( process, SIGNAL(readyReadStandardError()), this, SLOT(onReadyReadStandardError() ) ); } SyncMgr::~SyncMgr() { delete process; } void SyncMgr::onConnected() { cmdDispatcher.sendGetSerialNo();
I get assert and error message:
ASSERT: 'copy' in stream \ qmutex.cpp, line 525
source share