Page 1 of 1

TeeChart Pro v2019 (64bit)

Posted: Sun Jan 12, 2020 3:34 pm
by 16687657
Hi,
I am having a number of issues using TeeChart Pro v2019.0.4.25 and TeeChart201964.ocx

Here's the first one:-

I have a real time application monitoring avionics messages which has been converted from 32bit to 64bit (VS 2008 C++) Teechart5 to TeeChart Pro v2019.0.4.25

I am using the same code as used with the 32bit version

When calling

Code: Select all

m_tchart.ChangeSeriesType(series->m_iSeries, scBar);
or scPoint or scFastLine or scArea

I get the following pop up
errorTeeChart.png
errorTeeChart.png (53.33 KiB) Viewed 26220 times
After pressing OK the graphs appear and run.

If I change the type of graph at runtime I get the same result

sometimes i get an error message before calling m_tchart.ChangeSeriesType
Augument out of range


on this line

Code: Select all

m_tchart.GetTools().GetItems(TOOLS_ALARM_YBAND2).SetActive(0);
However, I already passed this line before calling m_tchart.ChangeSeriesType without any problem?

Please advise,

Thanks,

Shia.

Re: TeeChart Pro v2019 (64bit)

Posted: Thu Jan 23, 2020 8:12 am
by yeray
Hello Shia,

Sorry for the delayed reply here.
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.

Re: TeeChart Pro v2019 (64bit)

Posted: Thu Jan 23, 2020 10:21 am
by 16687657
Thanks but I solved it.

The problems were caused when I copied for the old teechart control to the new (see attached file).

When I created the same tools in the new v2019 64bit version I changed the order,not realizing the order was important. 8)

There were hard coded index's referencing the tools (originally written in 2002!) :|

Therefore, I was addressing the wrong tool, hence the errors.

I just rearranged the tools as per the original version, and everything is working. :D :) :wink:


Shia

Re: TeeChart Pro v2019 (64bit)

Posted: Thu Jan 30, 2020 5:07 pm
by Pep
Hi Shia,

I'm glad to hear all is working fine for you.

Thanks