[Mono-list] MemoryMappedFile is not yet available on mono?

Rodrigo Kumpera kumpera at gmail.com
Wed Nov 17 08:03:13 EST 2010


It's a bug either on your code or mono's. Can you post a small sample of
what causes your problem?

There's a know limitation on mono and unix that the mmap file must exist on
the file system unlike windows.

On Wed, Nov 17, 2010 at 7:28 AM, J.P. <mailing at mono.developer.kr> wrote:

> Hi.
>
> I success to use it on Windows but failed on linux. Was I wrong to
> run? MemoryMappedFile is not yet available on mono?
>
> I really hope so use memorymappedfile with mono on linux server.
>
> Regards,
> J.P. Park
>
>
>
> # mono -V
> Mono JIT compiler version 2.9 (master/32340d1 Wed Nov 17 08:51:37 KST 2010)
> Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
>  TLS:           __thread
> SIGSEGV:       altstack
> Notifications: epoll
>  Architecture:  amd64
> Disabled:      none
> Misc:          softdebug
>  LLVM:          yes(2.8svn-mono)
> GC:            Included Boehm (with typed GC and Parallel Mark)
>
> # mono Macau.exe
>
> Unhandled Exception: System.IO.FileNotFoundException: No such file or
> directory ---> Mono.Unix.UnixIOException: No such file or directory
> [ENOENT].
>   at Mono.Unix.UnixMarshal.ThrowExceptionForLastError () [0x00000] in
> <filename unknown>:0
>   at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateFromFile
> (System.String path, FileMode mode, System.String mapName, Int64 capacity,
> MemoryMappedFileAccess access) [0x00000] in <filename unknown>:0
>   at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateNew (System.String
> mapName, Int64 capacity, MemoryMappedFileAccess access,
> MemoryMappedFileOptions options,
> System.IO.MemoryMappedFiles.MemoryMappedFileSecurity
> memoryMappedFileSecurity, HandleInheritability handleInheritability)
> [0x00000] in <filename unknown>:0
>   at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateNew (System.String
> mapName, Int64 capacity, MemoryMappedFileAccess access) [0x00000] in
> <filename unknown>:0
>   at Macau.Program.Main () [0x00000] in <filename unknown>:0
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20101117/d5b3fba7/attachment.html 


More information about the Mono-list mailing list