Page 1 of 1

supporting Multiple version of Tcharts

Posted: Thu Nov 13, 2008 12:32 pm
by 13047041
Our top level application( desktop.exe) is a .Net container application .
This container host different controls which are build over period of time and use different version of Tchart.
here is the brief history :
• we developed first a control ( contour Chart)using 2.0.2489.20960 version of tchart at that time the container application( desktop.exe) was not complied with licence.licx file and it workes fine.
• Later we developed another control( Bottle neck chart) using 3.5.3188.18560 version of tchart.
While launching application using new control we had license issue so we added licence.licx file in the desktop.exe solution
After adding this licence.licx file the older controls(contour Chart) stoped working . If I remove the tchar.dll ver 3.5.3188.18560 from the folder where Desktop.exe and the Bottle neck chart is located the older application start working. but new application will not work.
Tchart version using 2.0.2489.20960 is in different folder then desktop.exe.
Looks like due to licence.licx file being added to project it is always loading newer version of tchart

Here is how licence.licx files look

Steema.TeeChart.TChart, TeeChart
Steema.TeeChart.TChart, TeeChart
Steema.TeeChart.Web.WebChart, TeeChart

Regards,
Amit

Posted: Fri Nov 14, 2008 12:28 pm
by Marc
Hello Amit,

We'll test a similar setup to see whether we can provoke a license error. TeeChart version 3 offers a 'plugin-version' that ties the license to the assembly in which it is compiled. Please mail info@steema.com with your customer details and we'll make a version available to you. With that setup the container application should continue to authorise the v2 license but the v3 module will be self contained.

In any case we recommend bringing TeeChart versions into line where commonly used in one apllication, if possible.

Regards,
Marc Meumann

upgrading Tee chart from 2.0.2489 to 3.5.3188.18560.

Posted: Tue Nov 25, 2008 9:22 am
by 13047041
Marc ,

We are exploring the possibility of upgrading our application from 2.0.2489 to 3.5.3188.18560. We ran into couple of compliation issue .
here is the details . The earlier code has something like this
private Steema.TeeChart.Tools.DrawLineItem rejectHighLineItem;
we are then using like this in code
rejectHighLineItem.EndPos.X = 1.0 ;
and like this
if (!Double.IsNaN(rejectHigh))
{
rejectHighLineItem.StartPos.Y = rejectHigh;
}
now at compile time we are getting following error
"Cannot modify the return value of 'Steema.TeeChart.Tools.DrawLineItem.EndPos' because it is not a variable."
can you suggerst how are we modify our code to do what we were doing earlier .

Re: upgrading Tee chart from 2.0.2489 to 3.5.3188.18560.

Posted: Tue Nov 25, 2008 9:29 am
by Chris
Hello,
Amit wrote: "Cannot modify the return value of 'Steema.TeeChart.Tools.DrawLineItem.EndPos' because it is not a variable."
can you suggerst how are we modify our code to do what we were doing earlier .
This is because StartPos and EndPos have been changed from a field to a property. You can modify the properties in a similar way:

Code: Select all

rejectHighLineItem.EndPos = new PointDouble(1.0, rejectHighLineItem.EndPos.Y);
if (!Double.IsNaN(rejectHigh))
{
rejectHighLineItem.StartPos = new PointDouble(rejectHighLineItem.StartPos.X, rejectHigh);
} 
This change was made to enable EndPos and StartPos to be serialized.