Page 1 of 1
x64 runtime error
Posted: Fri Mar 03, 2023 1:12 am
by 16666144
version : TeeChart2014
Compiler : VS2019
I have purchased the ActiveX version of your product Teechart 2014 a few years ago and have been using it.
I am trying to change the code developed on x86 platform into x64 but the same code worked well in x86 makes runtime error in x64.
The sample code which generate error in x64 can be downloaded at
https://works.do/GL9CtdQ
Any help will be appriciated.
Re: x64 runtime error
Posted: Mon Mar 06, 2023 10:01 am
by Pep
Hello,
thans for your advise.
Just let you know that we've been able to reproduce the problem here and that we're trying to find a solution.
We'll update you with the fix as soon as possible.
Thanks.
Re: x64 runtime error
Posted: Tue Mar 07, 2023 6:05 am
by Pep
Hello,
I've been reviewing the problem trying to find a solution, I thought it was related by other issue but not.
One thing I might ask to you, does the problem happens to you in a new clean project ?
If so, could you please send me this new small project ? as I'm having some problems trying to compile the one that you already sent.
Thanks
Re: x64 runtime error
Posted: Tue Mar 14, 2023 5:38 am
by 16666144
Hi,
Sorry for late reply.
It happens in a new clean project and
the project I have attached was a new one.
I have just added a few lines below to the new project.
CTChart m_tchart;
in header file
DDX_Control(pDX, IDC_TCHART1, m_tchart);
in DoDataExchange function
int idxColorLine = m_tchart.GetTools().Add(tcColorLine);
VARIANT varAxis;
varAxis.vt = VT_DISPATCH;
CAxis axBottom = m_tchart.GetAxis().GetBottom();
varAxis.pdispVal = axBottom;
m_tchart.GetTools().GetItems(idxColorLine).GetAsColorLine().SetAxis(varAxis);
in OnInitialUpdate() function
The last line makes the error on x64.
Re: x64 runtime error
Posted: Mon Mar 20, 2023 1:03 pm
by Pep
Hello,
we've been able to reproduce the problem here and a fix for it has been applied and will be included into the next maintenance release version that we're just preparing.
I've just sent an email directly to your email address so you can check the version which includes the fix until new maitnenance is uploaded.
Best regards!