Page 1 of 1

AV on mouse move on empty chart

Posted: Mon Mar 09, 2015 5:31 pm
by 16470020
Hello,

There is a AV (access violation) when I follow this steps:

1 - Create new VCL forms application on Delphi XE7 update 1;
2 - Put the TChart component;
3 - Set the property "Legend.LegendStyle" to "lsValues";
4 - Compile and run the application;
5 - Move the mouse over the chart. Occurs here the AV error;
6 - Now, set the property "Hover.Visible" to "false";
7 - Compile and run the application;
8 - Move the mouse over the chart. No problem now;

THE AV ERROR OCCURS ONLY IF THE CHART IS EMPTY.

Anybody know this issue? There is some solution?

Sorry for my English. I am from Brazil.

Thank you,

Alexandre.

Re: AV on mouse move on empty chart

Posted: Wed Mar 11, 2015 10:39 am
by yeray
Caro Alexandre,

Are you using the latest TeeChart Pro v2015.14?
You can check it adding the TeeConst unit to the uses clause and showing the TeeMsg_Version constant somewhere.
I drop TChart into an empty form on a new VCL application in Delphi XE7, I add the following code and I can move the mouse around with no error here.
May I be missing anything else to reproduce the problem?

Code: Select all

uses TeeConst;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Legend.LegendStyle:=lsValues;
  Chart1.Hover.Visible:=True;
  Caption:=TeeMsg_Version;
end;
2015-03-11_1138.png
2015-03-11_1138.png (5.82 KiB) Viewed 4962 times

Re: AV on mouse move on empty chart

Posted: Wed Mar 11, 2015 7:02 pm
by 16470020
Hi Yeray,

I was using the TeeChart Pro 2014. I updated to latest version (2015) and this problem is solved.

Thank you,

Alexandre.

Re: AV on mouse move on empty chart

Posted: Thu Mar 12, 2015 8:00 am
by yeray
Great to hear it, Alexandre!