Access violation errors when upgrading to TeeChart 6.0

TeeChart for ActiveX, COM and ASP
Post Reply
marksonbase
Newbie
Newbie
Posts: 10
Joined: Wed May 12, 2004 4:00 am

Access violation errors when upgrading to TeeChart 6.0

Post by marksonbase » Wed Jun 02, 2004 2:55 pm

Are there issues with mixing TeeChart ActiveX versions on the same system? We initially had TeeChart 5.0 being used as an object within Web pages. When we upgraded to TeeChart 6.0 (and changed the CLSID values to correspond to the new control) we started receiving “Access violation” errors upon loading the page. This even occurred with the TeeChart samples in the “Internet Explorer” directory. When we revert back to TeeChart 5.0 the errors go away, and everything works fine.

Do you have any suggestions? We would like to use TeeChart 6.0 but it is unusable in this state.

Thanks,

Mark

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jun 03, 2004 7:05 am

Hi Mark,

this should not be a problem. I thing that you should be aware is that if you've both versions installed on the same system you must use the TeeChart.TChart.5 and TeeChart.TChart.6 to create the objects instead of TeeChart.TChart.

marksonbase
Newbie
Newbie
Posts: 10
Joined: Wed May 12, 2004 4:00 am

Post by marksonbase » Thu Jun 03, 2004 2:53 pm

Actually, we are instantiating the version 6.0 TChart object in our html code thusly:

<OBJECT classid="clsid:536600D3-70FE-4C50-92FB-640F6BFC49AD"
CODEBASE="/teechart6.cab#Version=6,0,0,0"
id=TChart0
TYPE="application/x-oleobject"
width=100%
height=100%
align=center
hspace=0
vspace=0
>
</OBJECT>


And previously for version 5.0:

<OBJECT classid="clsid:B6C10489-FB89-11D4-93C9-006008A7EED4"
CODEBASE="/teechart5.cab#Version=5,0,0,0"
id=TChart0
TYPE="application/x-oleobject"
width=100%
height=100%
align=center
hspace=0
vspace=0
>
</OBJECT>

Is there a problem with this approach?

Thanks,

Mark

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jun 03, 2004 4:56 pm

Hi Mark,
Is there a problem with this approach?
Yes, this is correct.
“Access violation” errors upon loading the page. This even occurred with the TeeChart samples in the “Internet Explorer” directory. When we revert back to TeeChart 5.0 the errors go away, and everything works fine.
I'm able to reproduce the problem here. It comes when you're trying to run and html page which contains a TChart v6 object after you have opened another one which contains a TChart v5 object. It seems that IE saves a temporary file with the definitions,... and since this file is deleted the error happens. To solve this I've closed all the IE windows (this will automatically remove the memory or temporary file) and then run the html pages.
Could you please test if this is the problem you're having ?

Post Reply