[Issue 9678] New: std.file.getcwd crash on Win 64, 0xc0000005

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 9 11:54:26 PST 2013


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: nobody at puremagic.com
        ReportedBy: pr at m1xa.com


--- Comment #0 from Michael <pr at m1xa.com> 2013-03-09 11:54:25 PST ---
One line sample:

auto currDir = getcwd();


On forum: 
about getcwd -
http://forum.dlang.org/thread/pnuxfheeaqwyfjdqwyzw@forum.dlang.org

about dirEntries and absolutePath -
http://forum.dlang.org/thread/snegkdvgmutgvxnijjfp@forum.dlang.org

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: -------


More information about the Digitalmars-d-bugs mailing list