DMD dll GC bug when calling a function from an interface that creates a new object

Imperatorn johan_forsberg_86 at hotmail.com
Thu Nov 3 18:16:17 UTC 2022


On Thursday, 3 November 2022 at 14:53:19 UTC, Guillaume Piolat 
wrote:
> On Thursday, 3 November 2022 at 04:38:28 UTC, cc wrote:
>>
>> D DLLs each operate under a separate GC context from the main 
>> process, so anything `new`ed in a DLL may be collected if a 
>> reference to it isn't maintained there.  You can link them 
>> together so they share the same GC with something like this:
>>
>
> Ooooooh this explain so much strange bugs we had with D 
> programs hosting D DLL.

Are you on the D Discord btw?


More information about the Digitalmars-d mailing list