worries about ObjectId

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 03-Oct-2005 08:02:57   

Greetings, I utilize deep cloning for an object by serializing the object to a memory stream and the de-serializing it back again. I noticed that the clone I obtain from this process has the same ObjectId GUID value as the original object. My worry is that having two clones with the same objectId might have hidden traps in the way LLBL handles entities and entityCollections?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 03-Oct-2005 12:50:02   

VERY good point, though hard to fix... as it's done through object deserialization, and in there the objectid has to be included, to be able to identify an object in a remoting scenario for example.

Frans Bouma | Lead developer LLBLGen Pro