While I was trying to write some code to clone standard objects and collections to shared ones I came into this problem. A first I thought it was a malfunction on my code, so I tried to create shared objects and collections directly with with. This is the thing:
This works fine: one shared object inside another
$o_twoLevels:=New shared object(“letter”;“a”;“number”;New shared object(“one”;1))
If I embed a another object to the second level object I get a -10724 error (this object already belong to another shared object):
$o_threeLevels:=New shared object(“letter”;“a”;“number”;New shared object(“one”;1;“color”;New shared object(“black”;0)))
On standard objects and collection of course this problem does no exist.
Am I doing something wrong or is this a malfunction on shared objects or is it a “standard behavior”?
4D : v17R2 64 bit (did not try 32 bit)