Hi,
I get the following error when I add series to the chartcontrol.
-- Exception is --
Object is currently in use elsewhere.
System.InvalidOperationException: The object is currently in use elsewhere.
at System.Drawing.Graphics.EndContainer(GraphicsContainer container)
at System.Windows.Forms.DibGraphicsBufferManager.ReleaseBuffer(GraphicsBuffer buffer)
at System.Windows.Forms.GraphicsBuffer.Dispose()
at System.Windows.Forms.Control.WmPaint(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)
-- Exception --
Please find the sample application attached.
This is the sample which is given during the syncfusion installation.
the application as such works fine, but if we change the points to the following it crashes giving the above mentioned error.
please replace line 182 to 187 in formmain.cs with the following and you can see it work
series.Points.Add(3,6);
series.Points.Add(2,9);
series.Points.Add(0,5);
series.Points.Add(0,8);
series.Points.Add(1,7);
series.Points.Add(2,9);
if the points are double like(3.9,6.6) it works fine but if it is int like(3,6) it gives this error
please let me know wht could be the reason.
Thanks for your help,
Sara
cs_9545.zip