StackOverflowException on PersistentSeriesRenderingLayer

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
spdygnlz
Posts: 4
Joined: Thu Mar 13, 2014 7:07 pm

StackOverflowException on PersistentSeriesRenderingLayer

Post by spdygnlz » 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.

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 6733 times
Can anybody see what I'm doing wrong?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: StackOverflowException on PersistentSeriesRenderingLayer

Post by ArctionPasi » Thu Mar 13, 2014 9:45 pm

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.
LightningChart Support Team, PT

spdygnlz
Posts: 4
Joined: Thu Mar 13, 2014 7:07 pm

Re: StackOverflowException on PersistentSeriesRenderingLayer

Post by spdygnlz » Thu Mar 13, 2014 11:22 pm

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!

Post Reply