Hi,
I have 4 charts on my forms (in differents tabs), using delphi 7 pro
One with 2 series of horizontal bar and a tooltip on theses series to display an hint
The three others with series of TLineSeries (number of theses series is dynamic), i use this kind of construction :
sthroughput := TLineSeries.Create(self);
throughput.ParentChart := chThroughput;
sthroughput.Title := AFIfInfo.name;
sthroughput.LineBrush := bsSolid;
sthroughput.LineHeight := 1;
sthroughput.LinePen.Visible := False;
sthroughput.Marks.ArrowLength := 8;
sthroughput.Marks.Visible := False;
sthroughput.ValueFormat := '######0.## Kbit/s';
sthroughput.Pointer.InflateMargins := False;
sthroughput.Pointer.Style := psCircle;
sthroughput.Pointer.Visible := False;
throughput.XValues.DateTime := True;
sthroughput.XValues.Name := 'X ';
The crash debug show me this :
TTeeCustomShapeBrushPen.Repaint <-last call before access violation
TMarksItems.Clear
TSeriesMarks.Clear
TChartSeries.ClearLists
TChartSeries.Clear
TChartSeries.Destroy
When I close the form I set all series autorepaint to false before clearing them.
All ideas are welcome
