QtConcurrentRun calls non-qt function
-
Can you also show your call to QtConcurrentRun ?
-
Device manager contains two spectrometers,
@bool DeviceManager::scan()
{
_meter0->scan(); // scan in parallel
_meter1->scan(); // scan in parallel
return true;
}@
@bool Spectrometer::scan()
{
_progress = 0;
emit reportProgress(_progress);
// this will run parallel
QtConcurrent::run(this,&Spectrometer::doScanning);
_isWorking=true;
return true;
}@ -
Then are you sure that _brc is properly allocated ? That both are no trying to access the same resources at the same time ?
-
_brc is a pointer in Spectrometer class.
and I use new BRC() in Spectrometer's constructor.
Works most of time.and during my app starts up, each _brc did communicate with their corresponding hardware successfully.
Is it possible to allocate differently with same code but different runs?
-
What does the backtrace of a crash tell you ?
-
Are you running a debug build ?
-
Ok, then what does the debugger tell you ?