Either I'm confused or the gc is

mw mingwu at gmail.com
Thu Oct 22 19:57:08 UTC 2020


On Thursday, 22 October 2020 at 19:34:18 UTC, donallen wrote:
>> What does your Account struct look like?
>
>     struct Account
>     {
>         string name;
>         string path;
>         string guid;
>         string commodity_guid;
>         int flags;
>     }

Do you pass any variable from D to C? and how does those 
variables look like?

And if you are passing any D object to C, do you always hold a 
reference to them before the C returns? I mean: the D's gc think 
the object is no longer used, but actually is used by the C side.



More information about the Digitalmars-d mailing list