Page 1 of 1

System.IndexOutOfRangeException in SeriesXY.HighLowSeriesBas

Posted: Mon Jan 06, 2014 11:37 am
by Steffen
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()

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Posted: Mon Jan 06, 2014 2:20 pm
by ArctionPasi
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 :?:

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Posted: Tue Jan 07, 2014 3:04 pm
by Steffen
Hi Pasi,
i extracted the chart into a demo application.
thanks for your help

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Posted: Wed Jan 08, 2014 9:28 am
by ArctionTero
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?

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Posted: Wed Jan 08, 2014 10:12 am
by Steffen
Hi Tero,
sorry, i replaced the binary format with an xml one...now it should work

Re: System.IndexOutOfRangeException in SeriesXY.HighLowSerie

Posted: Wed Jan 08, 2014 1:53 pm
by ArctionPasi
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.