Error: Index was outside the bounds of the array.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Error: Index was outside the bounds of the array.

Post by Quant » Fri Apr 24, 2015 11:53 am

Hi,

We are facing a strange issue, but havent found a solution to this.
We are getting "Index was outside the bounds of the array" whenever we have Nerest Points and Mark Tips Tools are Active.

Christopher
Guru
Posts: 1270
Joined: Fri Nov 15, 2002 12:00 am

Re: Error: Index was outside the bounds of the array.

Post by Christopher » Fri Apr 24, 2015 12:35 pm

Quant wrote: We are facing a strange issue, but havent found a solution to this.
We are getting "Index was outside the bounds of the array" whenever we have Nerest Points and Mark Tips Tools are Active.
The following code snippet works as expected:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      tChart1.Series.Add(typeof(Points)).FillSampleValues();
      tChart1.Series.Add(typeof(Points)).FillSampleValues();

      NearestPoint tool1 = new NearestPoint(tChart1.Chart);
      tool1.Brush.Visible = false;
      tool1.Series = tChart1[0];

      MarksTip tool2 = new MarksTip(tChart1.Chart);
      tool2.Series = tChart1[1];
     
    }
Could you please modify the above code snippet so we can reproduce the problem here? If we can't reproduce the problem here it becomes extremely difficult for us to resolve.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: Error: Index was outside the bounds of the array.

Post by Quant » Tue May 26, 2015 8:38 am

Hi,
We tried to reproduce the same problem at our end, but haven't got any success till now.

Any help on this would be greatly appreciated.

Christopher
Guru
Posts: 1270
Joined: Fri Nov 15, 2002 12:00 am

Re: Error: Index was outside the bounds of the array.

Post by Christopher » Tue May 26, 2015 8:56 am

Hello,
Quant wrote: We tried to reproduce the same problem at our end, but haven't got any success till now.

Any help on this would be greatly appreciated.
We would be delighted to help you, but as I am sure you can appreciate it is very difficult for us to do so without being able to reproduce your problem here.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: Error: Index was outside the bounds of the array.

Post by Quant » Tue May 26, 2015 12:25 pm

Hi,

Fortunately we have found the solution by ourselves. We got the actual error location by which we resolved this error.

Post Reply