System.IndexOutOfRangeException in SeriesXY.HighLowSeriesBas

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
Steffen
Posts: 3
Joined: Mon Jan 06, 2014 9:58 am

System.IndexOutOfRangeException in SeriesXY.HighLowSeriesBas

Post by Steffen » Mon Jan 06, 2014 11:37 am

I paint two series in my chart, one for signal as PointLineSeries and one for the spectrum as AreaSeries.
After changing the XAxisScaling it got an IndexOutOfRangeException in SeriesXY.HighLowSeriesBase.OptimizeColumns by using the MouseScaling feature on an AreaSeries.

Do you have any idea what is going wrong?

Code: Select all

  StackTrace:
       bei Arction.LightningChartUltimate.SeriesXY.HighLowSeriesBase.OptimizeColumns(DrawColumnForArea[] columns, Int32 count, Boolean reversedYAxis, Int32 graphWidth) in c:\work\URP\trunk\Framework.IBMT.US\Base\Arction.LightningChartUltimate\SeriesXY\HighLowSeriesBase.cs:Zeile 1000.
       bei Arction.LightningChartUltimate.SeriesXY.HighLowSeriesBase.PointsToColumns(GraphSegmentInfo gsdi, Int32 yAxisSegmentIndex, Double xAxisMin, Double xAxisMax, Int32 chartWidth, Int32 graphMarginLeft, Int32 graphMarginRight, Int32 sweepPageIndex, Double firstValueToDraw, Int32 seekStartPointsRewind) in c:\work\URP\trunk\Framework.IBMT.US\Base\Arction.LightningChartUltimate\SeriesXY\HighLowSeriesBase.cs:Zeile 932.
       bei Arction.LightningChartUltimate.LightningChartUltimate.DoComposeHighLowSeriesDD(HighLowSeriesBase hls, Int32 sweepPageIndex, Double xAxisMin, Double xAxisMax, Double firstValueToDraw, GraphSegmentInfo gsdi, Int32 pageCount) in c:\work\URP\trunk\Framework.IBMT.US\Base\Arction.LightningChartUltimate\LightningChart.DrawingXY.cs:Zeile 9553.
       bei Arction.LightningChartUltimate.LightningChartUltimate.ComposeHighLowSeriesDD(Object pars) in c:\work\URP\trunk\Framework.IBMT.US\Base\Arction.LightningChartUltimate\LightningChart.DrawingXY.cs:Zeile 9425.
       bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       bei System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       bei System.Threading.ThreadPoolWorkQueue.Dispatch()

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

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Post by ArctionPasi » Mon Jan 06, 2014 2:20 pm

Hi Steffen,

our engineer tested this today with 5.3.8 version. He couldn't reproduce this.

Please check you are using current version. If that doesn't solve the problem, can you please send code that we can use to reproduce the problem :?:
LightningChart Support Team, PT

Steffen
Posts: 3
Joined: Mon Jan 06, 2014 9:58 am

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Post by Steffen » Tue Jan 07, 2014 3:04 pm

Hi Pasi,
i extracted the chart into a demo application.
thanks for your help
Last edited by Steffen on Wed Jan 08, 2014 11:22 am, edited 1 time in total.

ArctionTero
Posts: 42
Joined: Thu Mar 28, 2013 9:20 am

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Post by ArctionTero » Wed Jan 08, 2014 9:28 am

Hi Steffen,

I tried the code, but it requires Framework.IBMT.US assembly, which we don't have, to deserialize the data.
Could you provide us the assembly or code to read the serialized data?
LightningChart Support Team, TK

Steffen
Posts: 3
Joined: Mon Jan 06, 2014 9:58 am

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Post by Steffen » Wed Jan 08, 2014 10:12 am

Hi Tero,
sorry, i replaced the binary format with an xml one...now it should work
Attachments
BugTest.zip
(102.81 KiB) Downloaded 830 times

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

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Post by ArctionPasi » Wed Jan 08, 2014 1:53 pm

Build and ran your software successfully. We still couldn't re-produce the problem :? See a flash video



If you have LightningChart source code you can use, you use that to trace the problem. If you haven't got newest LC source, please request newest pack from support ] at [ arction.com.
LightningChart Support Team, PT

Post Reply