Page 1 of 1

IndexOutOfRangeException raised activating point series

Posted: Tue Mar 17, 2009 3:18 pm
by 13046530
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.

Re: IndexOutOfRangeException raised activating point series

Posted: Tue Mar 17, 2009 4:03 pm
by 13046530
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....

Re: IndexOutOfRangeException raised activating point series

Posted: Wed Mar 18, 2009 8:50 am
by 13046530
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.

Posted: Wed Mar 18, 2009 2:50 pm
by narcis
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.