Hi all,
I'm trying to use Qwt to plot accelerometer data @800Hz.
The application work, but it randomly crashes with error `double free or corruption (out)` while allocating data.
I use this code to update the plot:
void DataPlot::updateData( DataType type, QVector<double> ts, QVector<double> data, bool replot)
{
mData[type].mCurve->setSamples( ts, data );
if(replot)
this->replot();
}
void DataPlot::updateData( DataType type, QVector<double> ts, QVector<double> data, bool replot)
{
mData[type].mCurve->setSamples( ts, data );
if(replot)
this->replot();
}
To copy to clipboard, switch view to plain text mode
Where `ts` is the X axis, `data` is the Y axis and `mCurve` is a `QwtPlotCurve` curve.
Any idea or suggestion?
Thank you
Walter
Bookmarks