digitalmars.D.learn - std.mmfile issues
- Ondrej Pokorny (18/18) May 13 2012 Hi all,
- Ondrej Pokorny (6/25) May 14 2012 I found out that OpenFileMapping is not needed and
- Trass3r (1/5) May 14 2012 Possible. Feel free to file a bug report or create a pull request.
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 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
May 13 2012
On Monday, 14 May 2012 at 05:57:49 UTC, Ondrej Pokorny wrote: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 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 OndrejI found out that OpenFileMapping is not needed and CreateFileMapping is sufficient. I managed to code this with std.c.windows only however MmFile is not working even with simplest examlple maybe a bug under win 7? Ondrej
May 14 2012
I found out that OpenFileMapping is not needed and CreateFileMapping is sufficient. I managed to code this with std.c.windows only however MmFile is not working even with simplest examlple maybe a bug under win 7?Possible. Feel free to file a bug report or create a pull request.
May 14 2012