new int[]

Luís Marques luis at luismarques.eu
Wed Jan 10 23:03:16 UTC 2018


On Wednesday, 10 January 2018 at 22:48:48 UTC, Adam D. Ruppe 
wrote:
> General word of warning: if you pass it to C and the C function 
> holds on to that pointer for any reason beyond its immediate 
> execution, you could be looking at a problem because the D GC 
> can't see C function memory and may free it after the function 
> returns.

Thanks! I don't think it applies to me, because the void* pointer 
is reachable from a root pointer on the D side.


More information about the Digitalmars-d-learn mailing list