Error: 0xc0000005, Dmd Win 64

Michael pr at m1xa.com
Fri Mar 8 10:18:59 PST 2013


So, there is problem in toUTF8 in std.utf "toUTF8(in wchar[] s)".

string cwd()// copied from phobos
{
     writeln("start");
     import core.sys.windows.windows;
     writeln("buff");
     wchar[] ret = new wchar[10240];
     writeln("call");
     auto n = GetCurrentDirectoryW(to!DWORD(ret.length), ret.ptr);
     writeln("return");
     return ret[0 .. n].to!string();
}

Works as expected on both win32 and win64.


More information about the Digitalmars-d mailing list