I am trying to write a windows form application that embeds my QCChart Redistributable license into the executable so that I don't need an installer.
For testing, I have renamed my developer's license file in the Windows\System32 directory to disable it.
When I use a copy of the developer's license, everything works perfectly. It loads and operates just as expected. When I attempt to use the Redistributable license, however, I get an array index out of bounds exception on application initialization.
According to the exception dialog, the exception is thrown in the ChartView.DrawLicenseMessages() method.
I am unable to reproduce the problem you describe, testing it using our UserChartExample1 example program. I added the QCLicense.lic.xml file to the project, making sure to set its Build Action property to embedded resource. I added the ChartView.SetLicensePath('UserChartExample1") call before the user controls are instantiated.
public Form1()
{
//
// Required for Windows Form Designer support
//
ChartView.SetLicensePath("UserChartExample1");
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
See if you can reproduce your problem using our example program.