License issue with Managed C++
Posted: Wed Nov 11, 2009 7:29 am
Hello,
I am using TeeChart.NET Version 1 Build 1.1.2004.16592 and TeeChart.NET Version 1 Update Build 1.1.2531.28391. The product is built on Managed C++ platform, .Net Framework 1 with Visual Studio 2003.
I embed the TChart update Build 1.1.2004.16592 control on a System::Windows::Forms. This adds a License.Licx file to the project. Now I reference to the update build 1.1.2531.28391.
I make an installer of this and try to run it on a machine that does not have TChart installed on it. While loading the form that contains the TChart instance the following error occurs :-
System.NullReferenceException: Object reference not set to an instance of an object.
at Steema.TeeChart.FrAccessProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at AnalysisTool.CurveDrawer.InitializeComponent()
When the same thing is installed on a machine that already has TChart Build and TChart update build installed on it, everything works fine. The form gets loaded with the TChart instance.
Kindly find the attached project to check the issue.
There is also a project made in C# in the same way as made for Managed C++. While the C# project works fine, Managed C++ project does not.
Could you please help me to solve this issue.
Thanks
I am using TeeChart.NET Version 1 Build 1.1.2004.16592 and TeeChart.NET Version 1 Update Build 1.1.2531.28391. The product is built on Managed C++ platform, .Net Framework 1 with Visual Studio 2003.
I embed the TChart update Build 1.1.2004.16592 control on a System::Windows::Forms. This adds a License.Licx file to the project. Now I reference to the update build 1.1.2531.28391.
I make an installer of this and try to run it on a machine that does not have TChart installed on it. While loading the form that contains the TChart instance the following error occurs :-
System.NullReferenceException: Object reference not set to an instance of an object.
at Steema.TeeChart.FrAccessProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at AnalysisTool.CurveDrawer.InitializeComponent()
When the same thing is installed on a machine that already has TChart Build and TChart update build installed on it, everything works fine. The form gets loaded with the TChart instance.
Kindly find the attached project to check the issue.
There is also a project made in C# in the same way as made for Managed C++. While the C# project works fine, Managed C++ project does not.
Could you please help me to solve this issue.
Thanks