Crash at try t move colorline tool with Direct2D
Posted: Wed Feb 26, 2014 12:46 pm
Hi, i use Direct@d as a graphics3d in TeeCahert. i add coloroline tool to the chart and set allow drag property to true, when i try to drag it appears big red cross on white background. I got some info about it.
************** Exception Text **************
SlimDX.Direct2D.Direct2DException: D2DERR_WRONG_STATE: The object was not in the correct state to process the method. (-2003238911)
at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
at SlimDX.Direct2D.RenderTarget.EndDraw()
at Steema.TeeChart.Drawing.Direct2D.Graphics3DDirect2D.ShowImage(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
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)
So how can it be fixed?
************** Exception Text **************
SlimDX.Direct2D.Direct2DException: D2DERR_WRONG_STATE: The object was not in the correct state to process the method. (-2003238911)
at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
at SlimDX.Direct2D.RenderTarget.EndDraw()
at Steema.TeeChart.Drawing.Direct2D.Graphics3DDirect2D.ShowImage(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
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)
So how can it be fixed?