[Issue 12417] `toStringz` is fundamentally broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 21 13:53:43 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12417
--- Comment #2 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2014-03-22 00:53:42 MSK ---
(In reply to comment #1)
> I.e. you must read the C API documentation about what happens to those passed
> in pointer to data.
I'm talking about completely different thing. No C functions document whether
they store it's argument visible by GC during the call (at least because it can
depend on calling convension), consider this call:
---
SetCurrentDirectoryW(std.utf.toUTF16z(path));
---
It's incorrect as during `SetCurrentDirectoryW` call passed string may become
invisible by GC and collected.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list