Page 1 of 1

TChartSeries.Assignformat uses unsafe Assignment

Posted: Mon Mar 05, 2007 1:10 pm
by 9349350
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.

Posted: Mon Mar 05, 2007 2:13 pm
by narcis
Thanks for your suggestion Hans.

I've added your request to our wish-list to be reviewed and considered for inclusion in next releases.

Wish List

Posted: Mon Mar 05, 2007 2:16 pm
by 9349350
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...

Posted: Mon Mar 05, 2007 5:16 pm
by narcis
Hi Hans,

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

Thanks in advance.

I'll Have to find some time to do this

Posted: Tue Mar 06, 2007 7:20 am
by 9349350
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.