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 1080

Summary: an error with LinePoint in demoProjectWPF
Product: .NET TeeChart Reporter: Shinobu Nagai <nagai>
Component: Examples DemosAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: chris, sandra
Priority: ---    
Version: TeeChart.NET 2014 4.1.2014.12154   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: select LinePoint
error message

Description Shinobu Nagai 2015-01-09 01:29:05 EST
If running DemoProjectWPF, select "Steema.TeeChart.WPF.Styles.LinePoint" from the "Series" combobox, System.ObjectDisposedException occurs. Please let us know the workaround.
Comment 1 Shinobu Nagai 2015-01-09 01:29:43 EST
Created attachment 381 [details]
select LinePoint
Comment 2 Shinobu Nagai 2015-01-09 01:30:13 EST
Created attachment 382 [details]
error message
Comment 3 sandra pazos 2015-01-12 09:39:10 EST
The problem is produced in CanvasWPF class, concretely in the Polygon(bool isStroked, params Point[] p) method when is tried to use DrawGeometry. See code below: 
... 
    public void Polygon(bool isStroked, params Point[] p)
    {
      StreamGeometry geom = GetPathGeometry(p, isStroked);

      if (geom != null)
      {
        PushGuidelines(p);
        g.DrawGeometry(Brush.DrawingBrush, Pen.DrawingPen, geom);
        PopGuidelines();
      }
    }
...