GC seems to crash my C-code function

frame frame86 at live.com
Thu Sep 16 11:06:04 UTC 2021


On Thursday, 16 September 2021 at 10:48:19 UTC, bauss wrote:

>
> Use toStringz and not .ptr.
>
> Or append \0 to your string.

Stupid me should really know that already, thanks =)
Of course I have dup'ed the \0 from the string away...

But still I don't know why it works if the GC is off?


More information about the Digitalmars-d-learn mailing list