Null Reference Exception

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
fischertc
Posts: 18
Joined: Wed Feb 12, 2014 6:16 am

Null Reference Exception

Post by fischertc » Thu Jul 24, 2014 5:45 am

Version 6.0.9, just converted an app from 5 to 6.

This happened in EndUpdate in a Scroll event handler of a scrollbar that is scrolling a barseries based chart:

System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
Source=Arction.WPF.LightningChartUltimate
StackTrace:
at Arction.WPF.LightningChartUltimate.LightningChartUltimate.RGC(AxisX A, KD B, Double C, Double F, Int32 G, Rectangle H)
InnerException:

Code: Select all

                // If the min or max was changed, update the chart
                if (xMin != _chart.ViewXY.XAxes[0].Minimum || xMax != _chart.ViewXY.XAxes[0].Maximum)
                {
                    _chart.ViewXY.XAxes[0].SetRange(xMin, xMax);
                }

                _chart.EndUpdate();   <<< Exception here
No exception in 5.0

fischertc
Posts: 18
Joined: Wed Feb 12, 2014 6:16 am

Re: Null Reference Exception

Post by fischertc » Thu Jul 24, 2014 6:03 am

Seems to be randomly happening. This instance had a bit more info so I thought I would pass it on:

Code: Select all

Arction.WPF.LightningChartUltimate.ChartException occurred
  Message=Unspecified error: Object reference not set to an instance of an object.Stack trace:    at Arction.WPF.LightningChartUltimate.LightningChartUltimate.RGC(AxisX A, KD B, Double C, Double F, Int32 G, Rectangle H)
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.KDC()
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.ELC()
  Source=Arction.WPF.LightningChartUltimate
  Details=Object reference not set to an instance of an object.Stack trace:    at Arction.WPF.LightningChartUltimate.LightningChartUltimate.RGC(AxisX A, KD B, Double C, Double F, Int32 G, Rectangle H)
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.KDC()
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.ELC()
  ErrorDescription=Unspecified error
  StackTrace:
       at Arction.WPF.LightningChartUltimate.LightningChartUltimate.KNC(ErrorType A, Object B, String C, String F, Boolean G)
  InnerException: 

Post Reply