CustomPoint Serialization Error

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
noaksey
Newbie
Newbie
Posts: 55
Joined: Wed May 23, 2007 12:00 am

CustomPoint Serialization Error

Post by noaksey » Mon Jan 18, 2010 12:54 pm

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.
Attachments
SerialisationProblem.zip
(65.85 KiB) Downloaded 612 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CustomPoint Serialization Error

Post by Yeray » Tue Jan 19, 2010 3:27 pm

Hi noaksey,

I've reproduced it with your project and added it to the defect list to be fixed in future releases (TF02014643).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: CustomPoint Serialization Error

Post by Yeray » Thu Jan 28, 2010 12:15 pm

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;
     }
   } 
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply