Can't clone a business object?Can't clone a business object?
Old forum URL: forums.lhotka.net/forums/t/2728.aspx
JonM posted on Wednesday, April 18, 2007
While trying to clone an editor root object I get a weird error in the actual Clone method. It says "The ObjectManager found an invalid number of fixups. This usually indicates a problem in the Formatter." I've verified that all of the classes and enums are flagged serializeable.
RockfordLhotka replied on Wednesday, April 18, 2007
fwiw, I've never encountered that exception... The ObjectManager is a utility component used behind the scenes by the BinaryFormatter to help serialize and deserialize the object graph.
I have no idea what the exception means, but it sounds bad...
JonM replied on Thursday, April 19, 2007
It is very odd. I'm trying to clone a editable child collection. That should be okay right?RockfordLhotka replied on Thursday, April 19, 2007
Yes, you should be able to clone any CSLA object - at least any root object - without issue. If you can't, then things like a remote data portal won't work either, because the same .NET BinaryFormatter is used for all those things.Copyright (c) Marimer LLC