[Invalid class typecast] Error

TeeChart for ActiveX, COM and ASP
Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

[Invalid class typecast] Error

Post by Seth » Mon Dec 06, 2010 5:57 am

Hi,

I have a question.
I am using TeeChart Pro v7 ActiveX.
But Some series have error.

1. Choose one of series that Extended_Polar ,Extended_Radar,Extended_Polar Bar,Extended_Smith or Other_Wind Rose.
2. Add the series and set Random Data.
3. After that, Export [TChart1.Export.asNative.SaveToFile App.Path & "\teefile.tee", True] function.
4. And Import [TChart1.Import.LoadFromFile App.Path + "\teefile.tee"].
5. Then, there is an [Invalid class typecast] message box. So, I have to quit APP.

I tested your Sample program [C:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Unicode Version\examples\UnicodeTest\UnicodeProject.exe].
But It had same error.

I attached an error image.

Confirm, and answer me please.
Attachments
teechart_polarerror.JPG
teechart_polarerror.JPG (155.22 KiB) Viewed 25832 times

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

Re: [Invalid class typecast] Error

Post by Narcís » Tue Dec 07, 2010 11:48 am

Hi Seth,

I'm not able to reproduce the issue here using latest TeeChart 2010 and v8 ActiveX releases with this code:

Code: Select all

Private Sub Command1_Click()
    TChart1.Export.asNative.SaveToFile "C:\temp\AX.tee", True
End Sub

Private Sub Command2_Click()
    TChart1.ClearChart
    TChart1.Import.LoadFromFile "C:\temp\AX.tee"
End Sub

Private Sub Form_Load()
    TChart1.AddSeries scPolar
    TChart1.Series(0).FillSampleValues 10
End Sub
Does this work fine for you? Which is the exact TeeChart version you use? Can you please try if using latest evaluation version solves the problem at your end?

Thanks in advance.
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

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: [Invalid class typecast] Error

Post by Seth » Wed Dec 08, 2010 5:13 am

I used TeeChart Pro V7.0.1.4 ActiveX and VC++ 6.0.

Code: Select all

BOOL CTestchart2Dlg::OnInitDialog()
{
           CDialog::OnInitDialog();

           m_chart.ClearChart();
     m_chart.AddSeries(12); //scPolar 
   
           m_chart.Series(0).FillSampleValues(10);
           return TRUE;
} 
When This OnInitDialog() executes, [Invalid Class Typecast] message occures repeatly, so I have to quit ActiveX.
Without Import and Export, it occures when add one of the series among Polar(12) ,Radar(20),Polar Bar(45),Smith(34),Wind Rose(22) In AddSeries

Please Check again.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: [Invalid class typecast] Error

Post by Yeray » Mon Dec 13, 2010 2:00 pm

Hi Seth,

It's strange, the attached VC++6 project seems to reproduce the problem in a machine and not in another one, both running TeeChart AX v7.0.1.4.
test_TeeChart v7_VC++6.zip
(534.8 KiB) Downloaded 1370 times
However, it seems to work fine with v8 and v2010 in the machine where the problem was reproduced.
So could you please try the v2010 evaluation to see if the problem is reproducible for you with it?
http://www.steema.com/evaluation/ax
Thanks in advance
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: [Invalid class typecast] Error

Post by Seth » Fri Dec 17, 2010 2:27 am

Hi!

There was a same problem with your Sample Project in TeeChart Pro V7.
But in TeeChart Pro V2010 evaluation, there was no problem.

So, We want to fix it. (TeeChart Ver7)
Because we have to use Series that are occured an error for our customer.

Would you fix the problem in TeeChart ver.7?

I hope so.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: [Invalid class typecast] Error

Post by Yeray » Fri Dec 17, 2010 11:44 am

Hi Seth,

Since TeeChart AX v8 was released more than 3 years ago, and TeeChart AX v2010 about two months ago, as you'll understand, I'm afraid we don't have plans to publish another TeeChart AX v7 maintenance release.
If you want to upgrade to TeeChart v2010, please contact the sales department at: sales at steema dot com
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: [Invalid class typecast] Error

Post by Seth » Mon Dec 20, 2010 8:23 am

Hi,

First, Thank for your answer.
But We bought TeeChart ver.7 included Extended_Polar,Extended_Radar,Extended_Polar Bar,Extended_Smith or Other_Wind Rose series.
And It's Menual said that functions are provided in Teechart ver.7.
in addition, We have a problem updating Teechart Ver.7 to 2010.

I Understand that you are too hard to fix Teechart ver7,
This problem is production faulty. so, I ask for you to fix it.

I'll waiting for your positive answer.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: [Invalid class typecast] Error

Post by Yeray » Thu Dec 23, 2010 12:33 pm

Hi Seth,

The problem seems not to be reproducible here with TeeChart ActiveX v7.0.1.2 in the same machine where we could reproduce the problem with v7.0.1.4.
I've sent a mail with the v7.0.1.2 ocx to the mail account you have registered in these forums.

I hope it helps.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: [Invalid class typecast] Error

Post by Seth » Fri Dec 24, 2010 2:23 am

Hello.

I appreciated your answer.

I checked on TeeChart ActiveX v7.0.1.2. There was not problem with Add Series.
But it is difficult that distribute TeeChart ActiveX v.7.0.1.2. Because many of our customers had TeeChart ver.7.0.1.4 that was distributed by us.

And If we use v.7.0.1.2, some of Add Series problems are solved.
However There is no guarantee that Any problem may not be occurred.

Actually, This Problem is some of a Degradation upgrading from ver.7.0.1.2 to ver.7.0.1.4.
I understand that you have a trouble, but I ask you to reconsider to fix it.

I’ll waiting your answer.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: [Invalid class typecast] Error

Post by Marc » Mon Dec 27, 2010 12:52 pm

Hello,

We'll prepare a v7 update to resolve this issue. Hopefully we can have that ready within a week or two (we are looking at another issue we'd like to include in this update too).

Regards,
Marc Meumann
Steema Support

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: [Invalid class typecast] Error

Post by Marc » Thu Jan 13, 2011 4:55 pm

Hello,

An update installer for TeeChart AX v7 has been placed on the customer download page (http://www.steema.com/clientaccess). The issue reported in this thread has been tested as not-present in this release. See release notes: http://www.steema.com/versioninfo/ax .

Regards,
Marc
Steema Support

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: [Invalid class typecast] Error

Post by Seth » Tue Jan 25, 2011 5:16 am

Thank you for your kindness.

I checked that execute very well.
But I need Multi-Language version, too.
So, I ask for your favor, again.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: [Invalid class typecast] Error

Post by Marc » Wed Jan 26, 2011 4:09 pm

Hello,

There is now a new multi-language version 7 on the customer download page.

Regards,
Marc

Seth
Newbie
Newbie
Posts: 92
Joined: Tue Aug 17, 2004 4:00 am

Re: [Invalid class typecast] Error

Post by Seth » Fri Jan 28, 2011 7:23 am

Hello,

First, Thank you for new module!

I'm sorry but I need TeeChart7.ocx for Unicode, too.
That is not multi-language.

So, I ask for your kindness, again please

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: [Invalid class typecast] Error

Post by Yeray » Mon Jan 31, 2011 2:34 pm

Hi seth,

The version published on 26th January is Unicode, isn't it?
TeeChartAX7UpdateMultiLangUnicode.exe
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply