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.
CustomPoint Serialization Error
CustomPoint Serialization Error
- Attachments
-
- SerialisationProblem.zip
- (65.85 KiB) Downloaded 620 times
Re: CustomPoint Serialization Error
Hi noaksey,
I've reproduced it with your project and added it to the defect list to be fixed in future releases (TF02014643).
I've reproduced it with your project and added it to the defect list to be fixed in future releases (TF02014643).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: CustomPoint Serialization Error
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:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |