Page 1 of 1

CustomPoint Serialization Error

Posted: Mon Jan 18, 2010 12:54 pm
by 14045263
Hello,

I'm using VS2008 SP1 and TeeChart 4.0.2009.28593

I've created a control using TeeChart, but when adding the control to a form I get an error with CustomPoint -- "CustomPoint is not marked as serializable.

I've created a small example that shows the problem. Drag the "Tester" tool from the toolbox onto Form1

Thanks for any help.

Re: CustomPoint Serialization Error

Posted: Tue Jan 19, 2010 3:27 pm
by yeray
Hi noaksey,

I've reproduced it with your project and added it to the defect list to be fixed in future releases (TF02014643).

Re: CustomPoint Serialization Error

Posted: Thu Jan 28, 2010 12:15 pm
by yeray
Hi noaksey,

As an update, we've found that to get it to work, you should use the MyPoints class instead of the Points class as in the example:

Code: Select all

   public class MyPoints : Points
   {
     public MyPoints() : this((Chart)null) { }

     public MyPoints(Chart c)
       : base(c)
     {
       base.InternalUse = true;
     }
   }