Access Violation (mouse over graph)

TeeChart for ActiveX, COM and ASP
Post Reply
Ronald
Newbie
Newbie
Posts: 10
Joined: Fri Oct 01, 2004 4:00 am
Location: Belgium

Access Violation (mouse over graph)

Post by Ronald » Tue Oct 11, 2005 9:09 am

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 ?
Last edited by Ronald on Sat Oct 15, 2005 6:32 pm, edited 2 times in total.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Oct 11, 2005 9:30 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Ronald
Newbie
Newbie
Posts: 10
Joined: Fri Oct 01, 2004 4:00 am
Location: Belgium

Post by Ronald » Wed Oct 12, 2005 11:22 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Oct 17, 2005 8:53 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Ronald
Newbie
Newbie
Posts: 10
Joined: Fri Oct 01, 2004 4:00 am
Location: Belgium

Post by Ronald » Mon Oct 17, 2005 11:47 am

Thank you for sending the file.
I can confirm that the problem is solved with this file.

grtz,
Ronald

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Oct 17, 2005 2:16 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply