Link to home
Start Free TrialLog in
Avatar of AndyH79
AndyH79Flag for United States of America

asked on

VBA Memory Allocation on removed collection items

I have a nested collection of objects, where each meter object(parent) has a collection of interval objects(children). If I remove a meter from the the parent collection that has 30000 interval objects in it's interval collection, do I need to iterate through each interval to remove it from the child collection? Or can I just remove the meter object?  Will Excel perform garbage collection on all child objects, or will this result in a memory leak?
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial