Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 607

Summary: Dragging ColorLine in using Direct2D throws unhandled exception
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: Direct2DAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal    
Priority: ---    
Version: TeeChart.NET 2014 4.1.2014.02060   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2014-02-26 09:21:21 EST
Code to reproduce:

    private void InitializeChart()
    {
      tChart1.Series.Add(typeof(Bar)).FillSampleValues();

      ColorLine tool = new ColorLine(tChart1.Chart);
      tool.Axis = tChart1.Axes.Bottom;
      tool.Value = 3;
    }

then using the mouse to drag the cursor. The unhandled exception is:

SlimDX.Direct2D.Direct2DException was unhandled
  HResult=-2146233088
  Message=D2DERR_WRONG_STATE: The object was not in the correct state to process the method. (-2003238911)
  Source=SlimDX
  StackTrace:
       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) in d:\TCROOT\TeeChartforNET\Version 4\Sources\TeeChart.Direct2D\CanvasDirect2D.cs:line 1914
       at Steema.TeeChart.TChart.Draw(Graphics g) in d:\TCROOT\TeeChartforNET\Version 4\Sources\TeeChart\TeeChart.cs:line 1348
       at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe) in d:\TCROOT\TeeChartforNET\Version 4\Sources\TeeChart\TeeChart.cs:line 2126
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
       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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException: