[Issue 4092] broken memory management for COM objects derived from IUnknown

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 27 13:33:34 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=4092



--- Comment #13 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-27 13:33:33 PDT ---
(In reply to comment #12)
> This is the prototype for the precise GC, but it should do no harm elsewhere
> because the additional parameter in an extern(C) function is ignored by the
> called function and is removed from the stack by the callee.

Ah ok, thanks.

Just one other thing, it's often mentioned that the reference count of a COM
object should always start at 1, but your ComObject class starts with 0. Maybe
this isn't an issue because it's incremented in the QueryInterface() call?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list