Page 1 of 1

Access Violation (mouse over graph)

Posted: Tue Oct 11, 2005 9:09 am
by 9524367
Hello,

Strange thing, I get an access violation error when I move my mouse cursor over the graph.

I created a new application (MFC dlg-based) in VS.NET 2003,
and added the following function (which is called in the OnInitDialog() ):

Code: Select all

void CTestTeeChartDlg::InitGraph(void)
{
   m_Chart.ClearChart();
   m_Chart.AddSeries(scVolume);
}
//m_Chart is of type CTChart

The error I get is "Access violation at address 504DCD55 in module TeeChart7.ocx. Read of address FFFFFFFC."

It happens with v7.0.0.5 , v7.0.0.0 seems to be ok.

Any idea ?

Posted: Tue Oct 11, 2005 9:30 am
by narcis
Hello Ronald,

It seems to work fin here. You can try using:

Code: Select all

void CTestTeeChartDlg::InitGraph(void) 
{ 
m_Chart.ClearChart(); 
m_Chart.AddSeries(14); 
} 
For other TeeChart constant definitions please see TeeChartDefines.h at "C:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Control\Examples\Visual C++" (defaul english installation path).

If this doesn't solve your problem, could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Posted: Wed Oct 12, 2005 11:22 am
by 9524367
Sorry for the late reply,

The TeeChartDefines.h is included in my project.

Code: Select all

...
m_Chart.AddSeries(14); 
...
This makes no difference.

I'll try to post an example project later this evening, I can't post it here @ work due to firewall restrictions.

Posted: Mon Oct 17, 2005 8:53 am
by narcis
Hi Ronald,

It works fine here using the code below and our latest .ocx compilation which I'm going to send you.

Code: Select all

the_chart.ClearChart();

the_chart.AddSeries(CTchart1::scVolume);
Please notice that you'll have to unregister the old .ocx and register the new one. You'll find information on how to do that at Tutorial 17 available at TeeChart's program group.

Posted: Mon Oct 17, 2005 11:47 am
by 9524367
Thank you for sending the file.
I can confirm that the problem is solved with this file.

grtz,
Ronald

Posted: Mon Oct 17, 2005 2:16 pm
by narcis
Hi Ronald,
Thank you for sending the file.


You're welcome.
I can confirm that the problem is solved with this file.


Excellent! Thanks for the feedback.