Hey everyone,

I was just wondering if you guys often use reference-counting in your code instead of freeing things by hand. For those who are unfamiliar with it, it's a technique to keep track of the number of other objects that are using an object. As soon as that number becomes zero, the object will free itsself.

Interfaces use this technique aswell. If you create an object and pass an interface-reference to other parts of your program, the reference-count will be incremented. Once these references are "nilled", the reference-count will decrease again.

I'm deciding whether to implement reference-counted resources in my engine.Let me know what your thoughts about this are.