StackOverflowException on PersistentSeriesRenderingLayer
Posted: Thu Mar 13, 2014 9:13 pm
I just started using LightningChart and I love it!
I'm having a problem now that I am trying to show someone else what I've done. It works fine on my development box, but once I build and copy the .exe, it throws a StackOverflowException when I call RenderSeries on a PersistentSeriesRenderingLayer object. I've checked that the other computer has .Net4 and SlimDX installs. I made sure that all referenced LightningChart dlls referenced in the project are included, so I don't know what else could be causing this.
The actual code that's throwing the error is called from a DispatcherTimer Tick event handler. The exception isn't thrown on the first time through, but the second.
Here's a snip of the code. The exception is thrown from the last line.
Here's an example of the call stack when the problem occurs.
Can anybody see what I'm doing wrong?
I'm having a problem now that I am trying to show someone else what I've done. It works fine on my development box, but once I build and copy the .exe, it throws a StackOverflowException when I call RenderSeries on a PersistentSeriesRenderingLayer object. I've checked that the other computer has .Net4 and SlimDX installs. I made sure that all referenced LightningChart dlls referenced in the project are included, so I don't know what else could be causing this.
The actual code that's throwing the error is called from a DispatcherTimer Tick event handler. The exception isn't thrown on the first time through, but the second.
Here's a snip of the code. The exception is thrown from the last line.
Code: Select all
// add the data to the a "data series" that will feed into the plot
int count = data.Length;
var points = new SeriesPoint[count];
for (int i = 0; i < count; i++)
{
points[i] = new SeriesPoint(data[i].X, data[i].Y);
}
// add the data to the historic "data series"
PointLineSeries historicTrace = Pv1.ViewXY.PointLineSeries[1];
historicTrace.Points = points;
_historicDataLayer.MultiplyAlpha(0.95);
_historicDataLayer.RenderSeries(historicTrace);