crash when exit application at TeeProcs.pas #2758

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Hans
Newbie
Newbie
Posts: 1
Joined: Wed May 18, 2005 4:00 am
Location: CH

crash when exit application at TeeProcs.pas #2758

Post by Hans » Fri Sep 30, 2005 6:56 am

TeeChart 7.04 Professional, Delphi 5.

We use the TChart in TFrame. The Frames are created and deleted dynamicly during running of application. Also the TLineSeries are, created, added and removed during running of application dynamicly.
At the end/exit of Application there is a crash in the TeeChart library:

**** TeeProcs.pas ***
Procedure TTeeCustomShapeBrushPen.Repaint;
begin
if Assigned(ParentChart) then ParentChart.Invalidate; << crashs here
end;

After adding one line, there's no GPF:

*** TeEngine.pas ***
Procedure TCustomAxisPanel.RemoveSeries(SeriesIndex: Integer);
var tmp : TChartSeries;
begin
if SeriesIndex>=0 then
begin
tmp:=SeriesList[SeriesIndex];
BroadcastSeriesEvent(tmp,seRemove);
tmp.Removed;
//added begin
if Assigned(tmp.Marks) then tmp.Marks.ParentChart := nil;
//added end
FSeriesList.Delete(SeriesIndex);
Invalidate;
end;
end;

Does anybody knows about this failure?
Is this patch ok or just luck that it works?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 30, 2005 8:15 am

Hi Hans,

Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply