Page 1 of 1

Serializzation not work

Posted: 07 Jan 2010, 11:49
by Razzo
In help file the class CADEntity is marked as serializzable.
When i try to serialize this object i get the following error:
- $exception {"There was an error reflecting type 'CADImport.FlatPoly'."} System.Exception {System.InvalidOperationException}
- InnerException {"Cannot serialize member 'CADImport.CADEntity.DrawEvent' of type 'CADImport.EventHandler', see inner exception for more details."} System.Exception {System.InvalidOperationException}
Message "CADImport.EventHandler cannot be serialized because it does not have a parameterless constructor." string

It is a bug?

I want to serialize CADImage object and all the content. How can i do that?

Re: Serializzation not work

Posted: 11 Jan 2010, 17:47
by support
Hello.
You wrote
I want to serialize CADImage object and all the content.
But why you tried to serialize CADEntity object? CADEntity class have only purpose the implementation functional for descendant entities' classes. Why you create object of CADEntity? Did you tried to serialize CADImage object only?

Alexander.

Re: Serializzation not work

Posted: 12 Jan 2010, 11:12
by Razzo
CADImage is marked not serializzable :!:

Re: Serializzation not work

Posted: 14 Jan 2010, 16:06
by support
Hello.
Did you tried to serialize entities from any drawing, and if so did you succeeded?

Alexander.