ChartException

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

ChartException

Post by fischertc » Tue Nov 18, 2014 4:01 am

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: 

ArctionJari

Re: ChartException

Post by ArctionJari » Tue Nov 18, 2014 3:55 pm

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?

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

Re: ChartException

Post by fischertc » Wed Nov 19, 2014 3:17 am

I sent Pasi some information on the error. It is a band issue that happens when a band.fill.bitmap object is not assigned.

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

Re: ChartException

Post by ArctionPasi » Wed Nov 19, 2014 12:27 pm

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

Post Reply