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.

ChartCustomPoint related error?

Thread ID:

Created:

Updated:

Platform:

Replies:

62956 Jun 26,2007 07:44 AM Jun 27,2007 02:19 AM Windows Forms 1
loading
Tags: Chart
Kalle Tillemann
Asked On June 26, 2007 07:44 AM

Hi,

I am upgrading from version 4.4.0.51 to 5.1.0.51 and new error has emerged in my existing application.

1)Application creates linechart with 2 series, then user can modify the chart by dragging with mouse and 2)load new series (existing series are cleared).

This cycle works fine until I programmatically add custom chart point(s) to the chart.

If user now tries to add new series to this existing chart (and previously clearing existing series), following error occurs:

System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Chart.ChartSeriesRenderer.CalculateVisibleRange()
at Syncfusion.Windows.Forms.Chart.Renderers.LineRenderer.Render(Graphics g)
at Syncfusion.Windows.Forms.Chart.ChartSeriesCollection.DrawSeries(Graphics g, IChartAreaHost chart)
at Syncfusion.Windows.Forms.Chart.ChartArea.Draw2D(PaintEventArgs e, ChartPaintFlags flags)
at Syncfusion.Windows.Forms.Chart.ChartArea.Draw(PaintEventArgs e, ChartPaintFlags flags)
at Syncfusion.Windows.Forms.Chart.ChartArea.Draw(PaintEventArgs e)
at Syncfusion.Windows.Forms.Chart.ChartControl._Paint(Graphics g, Rectangle r)
at Syncfusion.Windows.Forms.Chart.ChartControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(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)

This error will emerge even if custom points are cleared before loading new series.

Any help would be appreciated. As I mentioned earlier this code works fine with previous version of Syncfusion libraries.

regards,
Kalle

Rashidha F [Syncfusion]
Replied On June 27, 2007 02:19 AM

Hi Kalle,

We regret for the inconvenience caused.

We are unable to reproduce this issue. I have attached one simple sample. Could you please modify this sample which can reproduce the issue you had mentioned, which would help us to analyse it better?

http://websamples.syncfusion.com/samples/Chart.Windows/F62956/main.htm

Thanks for your patience.

Regards,
Rashidha.

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.

;