Page 1 of 1

Index out of bounds exception

Posted: Mon Nov 05, 2007 3:40 pm
by 6933595
Hi

I've encountered a problem using the Tchart (version 1.1.1544.23908).
An unhandled exception is thrown from the application, I am using framework 1.1 so I can't even catch it.

This is the callstack:

Display received exception:System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Steema.TeeChart.Styles.Series.CalcXPos(Int32 index)
at Steema.TeeChart.Styles.CustomPoint.CalcXPos(Int32 valueIndex)
at Steema.TeeChart.Styles.CustomPoint.Clicked(Int32 x, Int32 y)
at Steema.TeeChart.Tools.MarksTip.MouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
at Steema.TeeChart.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
at Steema.TeeChart.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e)
at Steema.TeeChart.TChart.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


It seems to happen when the application is running but there is no one near the computer, but I'm not so sure if that's the only case where it happens.
I really need your help on this. Unfortuantly security reasons do not allow me to send you a dummy application so you can repruduce it in your computers. Is this problem solved in any of the newer versions?

Thanks for your help.
ilai.

Posted: Mon Nov 05, 2007 6:39 pm
by narcis
Hi ilai,

I'm afraid there's little we can do here without being able to reproduce the issue. It would be very helfpul if you could arrange a simple example project using random data so that we can reproduce the problem here.

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

You can also download TeeChart for .NET v3 Evaluation version here and check if the problem persists at your end.

Thanks in advance.

Posted: Sun Dec 02, 2007 9:12 am
by 6933595
narcis wrote:Hi ilai,

I'm afraid there's little we can do here without being able to reproduce the issue. It would be very helfpul if you could arrange a simple example project using random data so that we can reproduce the problem here.

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

You can also download TeeChart for .NET v3 Evaluation version here and check if the problem persists at your end.

Thanks in advance.
Unfortunately I can't send you an example project due to security reasons, but I was able to reproduce the problem and it seems like it happens when my form (containing the TeeChart) is minimize and when it is clicked to maximize the exception occurs. It does not happen every time but it happend a few time in this scenario.
Is there anything I can do about it? I am pretty desperate.

In addition, I will download a more advanced version and check to see if the problem is still there.

Thank you in advance.
Ilai.

Posted: Mon Dec 03, 2007 11:03 am
by narcis
Hi Ilai,

Thanks for the information but I haven't been able to reproduce the issue here.

Please try if you can reproduce the issue with latest TeeChart for .NET version available at the client area. If the problem persists there's no need to send us your project's source code. However, it would be very helpful if you could arrange a simple example project we can run "as-is" to reproduce the problem here.

Thanks in advance.