C++/D class interop example crashes

Jan Jan at Krassnigg.de
Sat Mar 27 21:50:19 UTC 2021


On Saturday, 27 March 2021 at 18:39:53 UTC, Bastiaan Veelo wrote:
> The example links objects statically. You may be experiencing 
> additional challenges with crossing DLL boundaries. I have not 
> yet used DLLs, but did you initialise the D runtime?

I haven't done anything extra (I'm pretty new to D). Do you mean 
calling this from the D code before using writeln?
https://dlang.org/phobos/core_runtime.html#initialize

I would have thought that happens automatically anyway.


More information about the Digitalmars-d-learn mailing list