4

Looking for code samples to access a memory map file in C#

Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
leora
  • 188,729
  • 360
  • 878
  • 1,366

3 Answers3

13

Looks like C# 4.0 will have MemoryMappedFile support in the library

leora
  • 188,729
  • 360
  • 878
  • 1,366
11

You can take a look at this CodeProject article which shows a simple array over MMF implementation using Winterdom's FileMap library - basically a wrapper around the Win32 APIs for memory mapped files.

Caveat emptor: 1) I have not used FileMap, so I can't vouch for it; 2) FileMap is under LGPL, if the licensing terms are of any concer of you.

You can also search on http://pinvoke.net for the P/Invoke definitions of the corresponding Win32 APIs and roll your own implementation.

Franci Penov
  • 74,861
  • 18
  • 132
  • 169
1

http://1code.codeplex.com/wikipage?title=IRPC

Search with

CSFileMappingClient
CSFileMappingServer
Mubashar
  • 12,300
  • 11
  • 66
  • 95