Page 1 of 1

ChartException

Posted: Tue Nov 18, 2014 4:01 am
by fischertc
I am using 6.2.6 in WPF. I am getting the following error at EndUpdate time after loading the chart with data. I cannot tell from the error what object is null. Any help is appreciated.

Code: Select all

Arction.WPF.LightningChartUltimate.ChartException occurred
  HResult=-2146233088
  Message=Unspecified error: Object reference not set to an instance of an object.Stack trace:    at Arction.WPF.LightningChartUltimate.LightningChartUltimate.NCC(AxisX A, QG B, Double C, Double F, Int32 G, Rectangle H)
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.DZB()
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.KHC()
  Source=Arction.WPF.LightningChartUltimate
  Details=Object reference not set to an instance of an object.Stack trace:    at Arction.WPF.LightningChartUltimate.LightningChartUltimate.NCC(AxisX A, QG B, Double C, Double F, Int32 G, Rectangle H)
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.DZB()
   at Arction.WPF.LightningChartUltimate.LightningChartUltimate.KHC()
  ErrorDescription=Unspecified error
  StackTrace:
       at Arction.WPF.LightningChartUltimate.LightningChartUltimate.SJC(ErrorType A, Object B, String C, String F, Boolean G)
       at Arction.WPF.LightningChartUltimate.LightningChartUltimate.KHC()
       at Arction.WPF.LightningChartUltimate.LightningChartUltimate.JHC()
       at Arction.WPF.LightningChartUltimate.LightningChartUltimate.HHC()
       at Arction.WPF.LightningChartUltimate.LightningChartUltimate.EndUpdate()
       at RSCMDesktop.Data.MaxDepthPlotter.EndUpdate() in D:\DataViewer\RSCMDesktop\RSCMDesktop\Data\MaxDepthPlotter.cs:line 930
  InnerException: 

Re: ChartException

Posted: Tue Nov 18, 2014 3:55 pm
by ArctionJari
Are you using LightningChartUltimate's bands in your application? If so, can you temporarily remove them to see if this exception still occurs? Can you send us a demo project (e.g. to our support email) that we could use to re-produce this exception?

Re: ChartException

Posted: Wed Nov 19, 2014 3:17 am
by fischertc
I sent Pasi some information on the error. It is a band issue that happens when a band.fill.bitmap object is not assigned.

Re: ChartException

Posted: Wed Nov 19, 2014 12:27 pm
by ArctionPasi
The issue was solved with aid of LightningChart source code. The reason is that same band fill object is assigned to two charts, and when other chart is disposed, the other chart's band's fill object gets null.

Solution: don't share LC objects between charts.