Page 1 of 1

StackOverflowException on PersistentSeriesRenderingLayer

Posted: Thu Mar 13, 2014 9:13 pm
by spdygnlz
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.

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);
Here's an example of the call stack when the problem occurs.
Call Stack when problem occurs
Call Stack when problem occurs
LightningChartStackOverflow.png (39.36 KiB) Viewed 6768 times
Can anybody see what I'm doing wrong?

Re: StackOverflowException on PersistentSeriesRenderingLayer

Posted: Thu Mar 13, 2014 9:45 pm
by ArctionPasi
Hi. Sounds strange. Does LightningChart render correctly on the other machine, otherwise except the PersistentSeriesRenderingLayer?

Please update the other machine's graphics drivers and if that doesn't help, let me know the details of the system and we'll try to find similar machine to test on.

Re: StackOverflowException on PersistentSeriesRenderingLayer

Posted: Thu Mar 13, 2014 11:22 pm
by spdygnlz
As far as the machine specs, it's a Hyper-V VM. Windows 7 64bit. I wasn't even thinking about graphics drivers. I suppose VMs don't generally have great graphics support.

I took out the RenderSeries call and it at least gets past the point where it crashed, but nothing is displayed. I think that might be more that Hyper-V doesn't support DirecX. At least it didn't crash without the call to RenderSeries. :D

I've since tried a couple other computers and things seem to be working.

Thanks!