[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:31:44 PDT 2013


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



--- Comment #12 from Rainer Schuetze <r.sagitario at gmx.de> 2013-09-27 13:31:42 PDT ---
(In reply to comment #11)
> Hmm, you seem to have this prototype in that file:
> 
> extern(C) void* gc_malloc(size_t sz, uint ba = 0, const TypeInfo ti=null);


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.

If you want to use the methods with the current GC and the respective imports,
just leave out the third argument.

-- 
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