www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: pr m1xa.com


--- Comment #0 from Michael <pr 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: -------
Mar 09 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9678


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r.sagitario gmx.de
         Resolution|                            |DUPLICATE


--- Comment #1 from Rainer Schuetze <r.sagitario gmx.de> 2013-03-10 01:18:18
PST ---
*** This issue has been marked as a duplicate of issue 9677 ***

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