http://d.puremagic.com/issues/show_bug.cgi?id=9678

           Summary: std.file.getcwd crash on Win 64, 0xc0000005
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Michael <[email protected]> 2013-03-09 11:54:25 PST ---
One line sample:

auto currDir = getcwd();


On forum: 
about getcwd -
http://forum.dlang.org/thread/[email protected]

about dirEntries and absolutePath -
http://forum.dlang.org/thread/[email protected]

As I assume, all related errors come from bugs in std.utf (or something that
used in this module) because:

string cwd()
{
    import core.sys.windows.windows;
    wchar[] ret = new wchar[10240];
    auto n = GetCurrentDirectoryW(to!DWORD(ret.length), ret.ptr);
    return ret[0 .. n].to!string();
}

works good on both Win 32 and Win 64.

Win 8 Pro 64 bit
Dmd 2.062
Visual Studio 2012 Express.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to