TChartSeries.Assignformat uses unsafe Assignment

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Hans Hasenack
Newbie
Newbie
Posts: 31
Joined: Thu Feb 22, 2007 12:00 am
Location: Nijmegen, Netherlands
Contact:

TChartSeries.Assignformat uses unsafe Assignment

Post by Hans Hasenack » Mon Mar 05, 2007 1:10 pm

TeeChartSeries.AssignFormat

Can you change following 4 lines

Self.FHorizAxis := FHorizAxis;
Self.FCustomHorizAxis:= FCustomHorizAxis; // 6.01
Self.FVertAxis := FVertAxis;
Self.FCustomVertAxis := FCustomVertAxis; // 6.01

Into

Self.HorizAxis := HorizAxis;
Self.CustomHorizAxis:= CustomHorizAxis; // 6.01
Self.VertAxis := VertAxis;
Self.CustomVertAxis := CustomVertAxis; // 6.01

In order to make sure the Assign method is called? This is required to ensure (reloaded) series will be linked onto the correct axis.

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

Post by Narcís » Mon Mar 05, 2007 2:13 pm

Thanks for your suggestion Hans.

I've added your request to our wish-list to be reviewed and considered for inclusion in next releases.
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

Hans Hasenack
Newbie
Newbie
Posts: 31
Joined: Thu Feb 22, 2007 12:00 am
Location: Nijmegen, Netherlands
Contact:

Wish List

Post by Hans Hasenack » Mon Mar 05, 2007 2:16 pm

Actually, it is a bug present from teeChart 5 already. :?

When loading chart settings, the chart becomes the 'owner' of the Tpersistent derived objects from another chart, causing AV's later on when the other chart is freed!

I guess I'll have to keep my patch for now...

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

Post by Narcís » Mon Mar 05, 2007 5:16 pm

Hi Hans,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

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

Hans Hasenack
Newbie
Newbie
Posts: 31
Joined: Thu Feb 22, 2007 12:00 am
Location: Nijmegen, Netherlands
Contact:

I'll Have to find some time to do this

Post by Hans Hasenack » Tue Mar 06, 2007 7:20 am

I am currently under some time pressure. :?
This problem, however appeared during Teechart5 days when assigning a TChart (and copying series) to a TQRChart. My problem demo project got lost somewhere in time...

I'll let you known asap when I have some mini project to demonstrate the problem.

Post Reply