QCustomPlot Discussion and Comments

A strange code crash about getOptimizedLineDataReturn to overview

When i change ‘scaleRange’ continuously, it always crashed for a while. In this line:

if (it->key > currentIntervalStartKey+keyEpsilon*2) // new pixel started further away from previous cluster, so make sure the last point of the cluster is at a real data point

'it' still exist, but it->key and it->value is unavailable. Error: "CXX0030: expression not evaluatable"

I dont know how to fix it. Any advice please?

maybe you are not expected to scale the range in another thread?

in addition, the same logic, it hasn't happened yet in MSVC2015, but it will be in MSVC2010