has anybody an idea why this might happens?
with this Array i have a strange problem.
OwnedArray<AutomationNode> nodes;
if i iterate through the array and delete the objects individually it works.
for(int i = nodes.size() ; -- i >= 0 ;)
{
AutomationNode* node = nodes.getUnchecked(i);
nodes.remove(i,false);
deleteAndZero(node);
}
but when i call the clear method it the destructors of the “AutomationNode” objects are not called.
nodes.clear();
there is nothing special going on with the AutomationNode class, afaict.
i’m a bit puzzled.
thanks
jm
p.s.: maybe i haven’t just sleept enough