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 2283 - Access violation in TFastLineSeries.Clear;
Summary: Access violation in TFastLineSeries.Clear;
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: High regression
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-24 00:38 EST by Stefan Bieringer
Modified: 2020-01-31 11:44 EST (History)
1 user (show)

See Also:
Chart Series: FastLine
Delphi / C++ Builder RAD IDE Version: RAD 10.3 Rio


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Bieringer 2020-01-24 00:38:31 EST
I'am using verions: Build 2020.29.200113
Sorry, I don't know what I should choose in the version list above.

I think there is a bug in file "VCLTee.Series" at line 1693.

When I close my application ParentChart.Canvas could be nil.
So this should be checked bevor trying to access the Canvas.

procedure TFastLineSeries.Clear;
begin
  inherited;
  
  // original code line
  if (ParentChart <> nil) then
  // I changed to this as a bugfix 
  if (ParentChart <> nil) and (ParentChart.Canvas <> nil) then
    With ParentChart,Canvas do
    begin
        OldX := GetVertAxis.PosAxis; //LeftAxis.PosAxis;
        OldY := GetHorizAxis.PosAxis; //BottomAxis.PosAxis;
        if View3D then MoveTo3D(OldX,OldY,MiddleZ)
                  else MoveTo(OldX,OldY);
    end;
end;
Comment 1 marc meumann 2020-01-31 11:44:09 EST
Hello Stefan,

Thanks for the feedback; we'll make the change.

Regards,
Marc