I've found myself having to write some VBA code recently and just wondered if anyone had ever come across any details on how the VBA garbage collector works? The .Net GC is very well-documented indeed but I can't find a single shred of detail on the VBA GC, other than that vague mentions that it's a reference counter. I assume that it's pretty similar to the VB6 GC but can't find any information on that either.
Specifically, I'd be interested in knowing:
- What triggers a GC
- What algorithm it uses (is collection generational, for example?)
- How (if at all) does it handle circular references?
- Is there any way of monitoring its operation
This is more out of curiosity than any particular need to know, any insight at all much appreciated!