Download

Creating a New Instance doesn't duplicate some sub objects for a custom CDO

Hey there guys, so very simple (or complex, depending on how you look at it) question.
How does the NewObject or ConstructObject function work when dealing with subobjects?

Right now i have a custom class that i want to construct, but some of the objects (that i put manually on the CDO on a custom compiler context) don’t get duplicated nor instantiated for the new instance… so i’m pretty sure i missed some important step.
If not, it seems that i have to replicate them by hand, because right now all the instances are sharing the pointers to the CDO sub object

Cheers!

could it be that i don’t have the subobject marked as an Archetype?

Edit: nope