We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ChartRegionArea Mouse Move problem

Thread ID:

Created:

Updated:

Platform:

Replies:

92172 Dec 24,2009 05:00 AM Dec 28,2009 05:45 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Puneet
Asked On December 24, 2009 05:00 AM

I'm facing a problem in Chart Control. I had written a code to draw the line chart by gettings the values for different objects and it draws the line and legand perfectly.

But Chart control charshes sometimes on mouse move action. When I regularly move the mouse over the chart region, after some time my application crashes.

The application directly get disposed with this chart control crash.

The following is the crash message.
---------------------------------------------------------------

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Chart.ChartRegionCollection.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Chart.ChartControl.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

---------------------------------------------------------------

From the exception it seems that on Mouse Move event of chart area region trying to find some data in collection and but out of index error comes.

I am not using the Mouse Move or Mouse Leave or Mouse Down type event handlers in code.

So if you have any suggestions to get rid of this problem then please help.

Thanks
Puneet

Venkata Vijayaraj B [Syncfusion]
Replied On December 28, 2009 05:45 AM

Hi Puneet,

Sorry for the inconvenience caused.

Please check the following things and send us the requested details.

1. Do you use any user defined region events in your sample?

2. Do you use any index values in your sample code for line chart and legend customization. If yes, send us the code snippet for the customization.

3. Since there is no region related events in Chart Web, let us know in which platform you are getting this error whether in Windows or Web and Your current Syncfusion version.

4. Send us a simple sample to reproduce this issue with replication steps. It will be more helpful for us to provide you the solution at the earliest.

Thanks for your patience.

Regards,
Venkat.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;