
Originally Posted by
Uwe
The crash happens, when accessing the curve data. So the relevant code is how you assign the points to your curve.
Uwe
void Graph::setXY(double *x, double *y, int size) {
mutex.lock();
crv->setData(x, y, size);
mutex.unlock();
}
void Graph::setXY(double *x, double *y, int size) {
mutex.lock();
crv->setData(x, y, size);
mutex.unlock();
}
To copy to clipboard, switch view to plain text mode
The plot itself lives in the main thread, but this function is called from another thread.
Bookmarks