std.mmfile issues

Ondrej Pokorny pokorny.ondrej at gmail.com
Sun May 13 22:57:48 PDT 2012


Hi all,

I am trying to use std.mmfile on Win 7 64 bit, compiler dmd 32 
2.059

MmFile memoryFile = new MmFile("test");

I receive this error:
std.exception.ErrnoException at std\mmfile.d(270):  (No error)

which is a little bit confusing for beginner. Am I using it in 
wrong way?

I am trying to achieve this functionality: 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366551(v=vs.85).aspx

Shared memory is created by another program, so I only need to 
access it.

After inspection of code in mmfile.d I am not sure if there is 
even possible to map file to virtual memory 
(INVALID_HANDLE_VALUE) with mmfile,
lastly I am missing c function OpenFileMapping in windows.di too.

Thanks a lot for any hints.

Best Ondrej


More information about the Digitalmars-d-learn mailing list