what keeps a COM object alive?

Richard Webb webby at beardmouse.org.uk
Wed Jun 12 08:08:28 PDT 2013


On Wednesday, 12 June 2013 at 14:41:05 UTC, finalpatch wrote:

>
> This feels even more cumbersome than in C++ because in C++ we 
> can simply
> delete this in the Release() method, there's no need to store a
> reference in a global place.
>


Juno does this by allocating the object on the non-gc heap, 
adding it as a GC root, and then deleting it when the refcount 
reaches 0.
It works ok, though I think the current implementation has some 
issues.


More information about the Digitalmars-d-learn mailing list