FreeformPointLineSeries PointCountLimit Exception

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

Matthias Weidmann
Posts: 16
Joined: Tue Jun 21, 2016 10:24 am

FreeformPointLineSeries PointCountLimit Exception

Post by Matthias Weidmann » Tue Jul 26, 2016 11:50 am

Hello Arction-Team,

I'm getting an ArgumentOutOfRangeException while setting the PointCountLimit of a FreeformPointLineSeries to 1.
The call stack point to an Array.Copy. The sourceIndex is less than the lower bound of the first dimension of sourceArray.

I haven't added a point to the series before setting this option. Setting the option after adding points to the series, seems to work.

Best regards
Matthias Weidmann

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

Re: FreeformPointLineSeries PointCountLimit Exception

Post by ArctionPasi » Thu Jul 28, 2016 4:15 pm

Thanks for reporting the problem. We'll try to arrange a fix soon.
LightningChart Support Team, PT

Matthias Weidmann
Posts: 16
Joined: Tue Jun 21, 2016 10:24 am

Re: FreeformPointLineSeries PointCountLimit Exception

Post by Matthias Weidmann » Fri Aug 26, 2016 12:29 pm

Hello Arction-Team,

I have noticed within the bug-fixes, that an ArgumentOutOfRange exception has been fixed concerning Buffers.
But with the version 7.1.3 I still get ArgumentOutOfRange exceptions while setting different PointCountLimits.
May you have a look at this bug again, if it should be fixed already?

Best regards,
Matthias Weidmann

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

Re: FreeformPointLineSeries PointCountLimit Exception

Post by ArctionPasi » Fri Aug 26, 2016 6:04 pm

I'm sorry, but it's not fixed yet. I'll try to fix during the weekend.
LightningChart Support Team, PT

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

Re: FreeformPointLineSeries PointCountLimit Exception

Post by ArctionPasi » Sun Aug 28, 2016 8:38 am

OK fixed that. We'll send you a new version on Monday-Tuesday for your final tests.
LightningChart Support Team, PT

Matthias Weidmann
Posts: 16
Joined: Tue Jun 21, 2016 10:24 am

Re: FreeformPointLineSeries PointCountLimit Exception

Post by Matthias Weidmann » Tue Apr 18, 2017 6:43 am

Hello Arction-Team,

with the version 8.0.1.4001 I still get ArgumentOutOfRange exceptions while setting different PointCountLimits.
May you have a look at this bug again, if it should be fixed already?

Call Stack:
FreeformPointLineSeries.HOD(bool A)
FreeformPointLineSeries.PointCountLimit.set(int value)

Best regards,
Matthias Weidmann

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

Re: FreeformPointLineSeries PointCountLimit Exception

Post by ArctionPasi » Tue Apr 18, 2017 12:28 pm

Hi Matthias,

After the fix in August 31, 2016, we are not able to reproduce the problem.

I tested with v.8 by using Lissajous example, selecting XY chart, (the middle big one) from property editor, going to ViewXY->FreeformPointLineSeries[0]->PointCountLimit = 1. Changed PointCountLimit to various numbers between 1-1000000 and all worked.

Can you please send example code how to reproduce the problem :?:
LightningChart Support Team, PT

Matthias Weidmann
Posts: 16
Joined: Tue Jun 21, 2016 10:24 am

Re: FreeformPointLineSeries PointCountLimit Exception

Post by Matthias Weidmann » Wed Apr 19, 2017 8:20 am

Hello Pasi,

I have attached a sample solution which triggers the exception.

Best regards,
Matthias Weidmann
Attachments
PointCountLimitExceptionSample.zip
Sample solution for reproducing ArgumentOutOfRangeException
(98.72 KiB) Downloaded 481 times

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

Re: FreeformPointLineSeries PointCountLimit Exception

Post by ArctionPasi » Wed Apr 19, 2017 10:29 am

Thanks. Reproduced successfully with your code.

Resolving it now.
LightningChart Support Team, PT

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

Re: FreeformPointLineSeries PointCountLimit Exception

Post by ArctionPasi » Wed Apr 19, 2017 2:01 pm

Fixed in our code base. Will be included in next v.8 update.

Please say if you want us to send you unofficial test version for verifying the fix.
LightningChart Support Team, PT