I’m using ReferenceCountedObjectArray with CriticalSection quite heavily, and I seem to be running into a hole in the implementation…
I’m using the array across threads, and I have some arrays holding ‘spare’ objects. The problem is when I want to ‘pop’ them off. I can get a reference or index to one of them, but I can’t guarantee that the array won’t change in between my query and removing the object.
Is there a reason that ‘ObjectClass * remove(int)’ won’t work with that class? Obviosuly it would need to return a reference, but if the reference isn’t picked up it would be a simple remove, right?
Bruce