leora
leora

Reputation: 196761

C# accessing memory map file

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

Upvotes: 4

Views: 11264

Answers (3)

Mubashar
Mubashar

Reputation: 12668

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

Search with

CSFileMappingClient
CSFileMappingServer

Upvotes: 1

leora
leora

Reputation: 196761

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

Upvotes: 13

Franci Penov
Franci Penov

Reputation: 76021

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.

Upvotes: 11

Related Questions