Page 1 of 2

[Invalid class typecast] Error

Posted: Mon Dec 06, 2010 5:57 am
by 9523580
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.

Re: [Invalid class typecast] Error

Posted: Tue Dec 07, 2010 11:48 am
by narcis
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.

Re: [Invalid class typecast] Error

Posted: Wed Dec 08, 2010 5:13 am
by 9523580
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.

Re: [Invalid class typecast] Error

Posted: Mon Dec 13, 2010 2:00 pm
by yeray
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 1136 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

Re: [Invalid class typecast] Error

Posted: Fri Dec 17, 2010 2:27 am
by 9523580
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.

Re: [Invalid class typecast] Error

Posted: Fri Dec 17, 2010 11:44 am
by yeray
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

Re: [Invalid class typecast] Error

Posted: Mon Dec 20, 2010 8:23 am
by 9523580
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.

Re: [Invalid class typecast] Error

Posted: Thu Dec 23, 2010 12:33 pm
by yeray
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.

Re: [Invalid class typecast] Error

Posted: Fri Dec 24, 2010 2:23 am
by 9523580
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.

Re: [Invalid class typecast] Error

Posted: Mon Dec 27, 2010 12:52 pm
by Marc
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

Re: [Invalid class typecast] Error

Posted: Thu Jan 13, 2011 4:55 pm
by Marc
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

Re: [Invalid class typecast] Error

Posted: Tue Jan 25, 2011 5:16 am
by 9523580
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.

Re: [Invalid class typecast] Error

Posted: Wed Jan 26, 2011 4:09 pm
by Marc
Hello,

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

Regards,
Marc

Re: [Invalid class typecast] Error

Posted: Fri Jan 28, 2011 7:23 am
by 9523580
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

Re: [Invalid class typecast] Error

Posted: Mon Jan 31, 2011 2:34 pm
by yeray
Hi seth,

The version published on 26th January is Unicode, isn't it?
TeeChartAX7UpdateMultiLangUnicode.exe