Re: std.mmfile issues
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 Ondrej 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? Ondrej
Re: std.mmfile issues
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.
std.mmfile issues
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