Page 1 of 1

GaugeSeriesPointer is not marked as serializable

Posted: Fri Nov 08, 2013 9:21 am
by 15654539
I have recently upgrade Teechart from a two years old version, and I have this error, in a code which runs before the upgrade.
Thanks

Re: GaugeSeriesPointer is not marked as serializable

Posted: Fri Nov 08, 2013 4:06 pm
by 10050769
Hello wakeup,

Next code works in correct way for me:

Code: Select all

  Steema.TeeChart.Styles.Line line1;
    Steema.TeeChart.Styles.GaugeSeriesPointer gauge; 
    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
     line1 = new Line(tChart1.Chart);
      gauge = new GaugeSeriesPointer(tChart1.Chart, line1);
      line1.FillSampleValues();
      line1.Pointer.Visible = true;
      tChart1.Export.Template.Save(@"C:\test.tmp");
      line1.GetPointerStyle += line1_GetPointerStyle;
      button1.Click += button1_Click;
     }

    void line1_GetPointerStyle(CustomPoint series, GetPointerStyleEventArgs e)
    {
      gauge.Draw(line1.CalcXPos(1), line1.CalcYPos(1), Color.Red); 
    
}

Could you check if my code works for you?

Thanks,

Re: GaugeSeriesPointer is not marked as serializable

Posted: Fri Nov 08, 2013 4:42 pm
by 15654539
It runs, but try this example project
http://193.145.251.126/pnp/files/Xmutyz ... chart2.zip

Push button1, and then button2. I get the error in button 2.
Thanks

Re: GaugeSeriesPointer is not marked as serializable

Posted: Mon Nov 11, 2013 12:20 pm
by 10050769
Hello wakeup,

Thanks for extra information. I can reproduce this problem, I have added it in bug list report with number [id90]. We will try to fix it to upcoming versions of TeeChartfor.Net. Remember you can follow the status of the bug in this link.

On the other hand, could you tell us in which version it works fine for you?

Thanks,

Re: GaugeSeriesPointer is not marked as serializable

Posted: Mon Nov 11, 2013 12:31 pm
by 15654539
My previous version was
TeeChartNET2010VSNET2010_4.0.2010.13053.exe

Re: GaugeSeriesPointer is not marked as serializable

Posted: Mon Nov 11, 2013 12:44 pm
by 10050769
Hi wakeup,

Many thanks.