Serializing entity and validator with circular reference

Posts   
 
    
brpalmer
User
Posts: 23
Joined: 08-Nov-2006
# Posted on: 28-Apr-2008 11:07:10   

Hi guys,

If I have an entity which has a validator, and the validator has a reference back to the entity, what happens when this entity is serialized?

In my code this gives me a stack overflow exception during serialization, and I think this is because of the circular reference. Am I right, or do I need to keep looking for the cause?

I'm using LLBLGen Pro v2.5, March 28th, 2008.

Regards, Bruce

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 28-Apr-2008 18:16:53   

and I think this is because of the circular reference. Am I right, or do I need to keep looking for the cause?

I think this is correct.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 29-Apr-2008 15:50:04   

Serialization can deal with cyclic references. simple_smile (binary serialization that is. Validators aren't serialized as objects in xml serialization, just types)

Frans Bouma | Lead developer LLBLGen Pro