GC seems to crash my C-code function

bauss jj_1337 at live.dk
Thu Sep 16 11:11:56 UTC 2021


On Thursday, 16 September 2021 at 11:06:04 UTC, frame wrote:
> 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?

Did you see my second response?


More information about the Digitalmars-d-learn mailing list