Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1083

Summary: some errors with DemoProject for VS2005
Product: .NET TeeChart Reporter: Shinobu Nagai <nagai>
Component: Examples DemosAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: chris, sandra
Priority: ---    
Version: TeeChart.NET 2014 4.1.2014.12154   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: some errors with DemoProject for VS2005

Description Shinobu Nagai 2015-01-12 23:24:21 EST
Created attachment 384 [details]
some errors with DemoProject for VS2005

If compiling DemoProject for VS2005, some error occur (see the attached image) and can't run it.
The error messages say ...

"(", ";" and ";" are required.
")" and "," are disabled.
Comment 1 sandra pazos 2015-01-14 08:06:41 EST
*** Bug 1084 has been marked as a duplicate of this bug. ***
Comment 2 Shinobu Nagai 2015-01-14 21:59:25 EST
Hello Sandra,

Are there any workaround for it? We'd like to release it without any compilation errors.
Comment 3 sandra pazos 2015-01-15 05:02:19 EST
Hello Nagai, 
The lambda expression (=>) is a feature introduced in C#3 and VS2005 use C#2. Therefore, it’s version of language of he VS2005 that causes the problem. A workaround is change the lambda expression: 
 public ClockGauge_Series() : base()
    {
      InitializeComponent();
      Load += (s, e) => { InitializeChart(); };
    }
For code below: 
public ClockGauge_Series() : base(
{
      InitializeComponent();

      Load += new EventHandler(ClockGauge_Series_Load);
}
void ClockGauge_Series_Load(object sender, EventArgs e)
{
          InitializeChart();
}