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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Runtime exception in chart control

Thread ID:





55142 Jan 24,2007 01:07 PM UTC Feb 7,2007 11:38 AM UTC WinForms 2
Tags: Chart
Sathishkumar Kaliavaradhan
Asked On January 24, 2007 01:07 PM UTC

Hello All,

I am using windows syncfusion chart control in web page and I am using for real time values so that I developed custom model for chart updation below is my code.

public void RaiseListChanged(ListChangedType listChangedType,int index)
if (this.trendSeries.TrendPointCollection.Count > 0)
if (this.Changed != null)
this.Changed(this, new ListChangedEventArgs(listChangedType, index));
catch (Exception ex)
System.Diagnostics.Trace.WriteLine(DateTime.Now.ToString() + ":" + ex.Message);

the line "this.Changed(this, new ListChangedEventArgs(listChangedType, index));"

throws exception saying that "cannot access disposed object"

Please tell me how do i fix this problem

I attached my error image too.

Thanks in Advance


Sathishkumar Kaliavaradhan
Replied On February 6, 2007 02:23 PM UTC

Hi All,

Please anyone can help me, i am getting this error each time i am creating the chartcontrol object this error message is showing in ASP page

Cannot access a disposed object
object name:'TrendControl'
Name 'TrendControl' is class which inherit the class 'ChartControl'

And Stack trace is below

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'TrendControl'.
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.PointToClientInternal(Point p)
at System.Windows.Forms.Control.PointToClient(Point p)
at Syncfusion.Windows.Forms.Chart.ChartControl.toolTip_MouseMove(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Syncfusion.Windows.Forms.PopupControlContainer.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)

With Regards

Administrator [Syncfusion]
Replied On February 7, 2007 11:38 AM UTC

Hi Satishkumar,

Sorry for the inconvenience caused.

Could you please provide us with a sample which reproduces the condition that you have mentioned here?



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon