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 378

Summary: [TF02013653] I experienced an annoying problem on an user frame containing a TChar...
Product: .NET TeeChart Reporter: narcís calvet <narcis>
Component: OthersAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2013-11-20 11:26:30 EST
I experienced an annoying problem on an user frame containing a TChart.
A few time after I open the frame in the designer, a message box containing the following error appears:

Type 'System.Drawing.Color, System.Drawing, Version 2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not implement the IXmlSerializable interface therefore can not proceed with serialization.

The message box is shown several times (about ten) and the error seems periodical (once I confirmed the ten errors, I can continue to work normally but after a few time the error reoccurs ...)
It also happens when i compile my solution, but oddly there is no problem at runtime

I suspected that the problem was the same as described at http://www.teechart.net/support/viewtopic.php?t=3239 and that removing Steema.TeeChart.Styles.ColorList references from *.resx file would solve the issue but it doesn't seem to be the case.

Find attached a project reproducing the issue.

To reproduce the problem, just change some property in the TChart inside the UCFrameChart control and save the project itself (or recompile the solution).
opening UCFrameChart.resx and removing seriesMixed.Colors (of type ColorList), saving it and then reopening the UCFrameChart.cs solved the problem for me here.
Client replied:
Mmmmm... actually this solves the problem, but the entry inside the .resx file is recreated (I don't know exactly in which moment ... maybe when the frame is closed or when some modifications are made in the designer) and so it is necessary to remove the entry each time it is recreated

I investigated a bit and the the entry in the resx seems to be recreated when a control (e.g. a button or a label) is added on the frame and once the project is recompiled...

It is possible to avoid design-time serialization of seriesMixed.Colors property into the .resx file and set it at run-time from the code ?  [created:2008-12-15T15:42:44.000+01:00 reported by:narcis@steema.com reported in version:Build 3.5.3225.32183 (TeeChart for .NET)]