Get an Object's Ref Count?

BlitzMax Forums/BlitzMax Programming/Get an Object's Ref Count?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

yes the handle is managed... but if you only create one handle with HandleFromObject() and store the handle whereever you need it instead of an object reference the reference counter will always be one. whatever has the handle can still get to the object and its props/methods via HandleToObject(). in this way you can manually manage the reference count. like is said... maybe or maybe not useful in your situation :) it would require a framework that counts where you use it. the other thread you mentioned is actually what got me thinking about this.