IndexOutOfRangeException when using Bands

Found a possible bug in LightningChart? Report it here.

Moderator: Arction_LasseP

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

IndexOutOfRangeException when using Bands

Post by jrvdboom » Thu Aug 28, 2014 8:29 am

If I add a band to ViewXY.Bands and then call SetSubNodeOwners on the Band, it throws an IndexOutOfRangeException when the axis with the assigned axis index doesn't exist yet.

This can easily be prevented by creating the axes before the bands, BUT when working with the Visual Studio designer the generated XAML can define the bands before the axes. Other SeriesBaseXY subtypes don't suffer from this problem, so I would like to suggest that Bands also take into account that an axis might not exist yet.

Thanks,
Joost

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

Re: IndexOutOfRangeException when using Bands

Post by ArctionPasi » Mon Sep 01, 2014 6:36 pm

Hi Joost,

this problem was fixed in v.6.1.0 today. It's now downloadable with full installer.

Our apologies for the trouble.
LightningChart Support Team, PT