IndexOutOfRangeException raised activating point series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Luigi S.
Newbie
Newbie
Posts: 25
Joined: Tue Aug 21, 2007 12:00 am

IndexOutOfRangeException raised activating point series

Post by Luigi S. » Tue Mar 17, 2009 3:18 pm

Hi again,
my application contains a TeeChart with three Point series (and some other FastLine, Line and Shape series): two of them are usually active and one is non-active. When I activate the third one, i get an IndexOutOfRangeException whose call stack is the following :

Code: Select all

   in Steema.TeeChart.Styles.ValueList.get_Item(Int32 index)
   in Steema.TeeChart.Styles.CustomPoint.CalcFirstLastVisibleIndex()
   in Steema.TeeChart.Styles.Series.DrawSeries()
   in Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
   in Steema.TeeChart.Chart.InternalDraw(Graphics g)
   in Steema.TeeChart.TChart.Draw(Graphics g)
   in Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
   in System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   in System.Windows.Forms.Control.WmPaint(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I know that the problem explained is a little too "vague" and unfortunately in this case It's not easy for me to provide an example project that reproduces the problem :-(...
I could try to export series data in an XML file or something similar, but what about chart settings (axis limits, etc...) ?

Thanks.
Luigi S.
(using TeeChart for .NET ver. 3.5.3330.21113 with Microsoft Visual Studio 2005 SP1)

Luigi S.
Newbie
Newbie
Posts: 25
Joined: Tue Aug 21, 2007 12:00 am

Re: IndexOutOfRangeException raised activating point series

Post by Luigi S. » Tue Mar 17, 2009 4:03 pm

A couple of notes:
- The horizontal (X) axis of the chart has DateTime property=true and the min and max property of this axis are set manually (Automatic=false)
- I noticed that the exception is thrown when i "move" the current "sliding window" (changing the min and max limits of the chart): it seems that the problem occurs when only particular points need to be shown...

Hope this can help....
Luigi S.
(using TeeChart for .NET ver. 3.5.3330.21113 with Microsoft Visual Studio 2005 SP1)

Luigi S.
Newbie
Newbie
Posts: 25
Joined: Tue Aug 21, 2007 12:00 am

Re: IndexOutOfRangeException raised activating point series

Post by Luigi S. » Wed Mar 18, 2009 8:50 am

One more note:

The problem seems to occur only in version 3.5.3330.21113 of TeeChart... I rolled back to an older version (3.5.3274.30663) and it seems to work fine.
Luigi S.
(using TeeChart for .NET ver. 3.5.3330.21113 with Microsoft Visual Studio 2005 SP1)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 18, 2009 2:50 pm

Hi Luigi,

To be able to help you is very important that we can reproduce the issue here. It would be very helpful if you could arrange a simple example project we can run "as-is" to reproduce the issue here. Alternatively you could try exporting your chart to a native template file (*.ten) and let us know the exact steps we should follow to reproduce the issue here.

For more information on how to export charts please read Tutorial 12 - Exporting and Importing Charts. Tutorials can be found at TeeChart's program group.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply