1

I´m using OpenNetCF in my Win CE app.

I need to use a shared memory solution, and I thought about Using the MemoryMappedFile.

But https://www.opennetcf.com/library/sdf/ does not show how to use it.

I mean, it´s clear to me how can I create a mapped file in one place. But is not clear to me how can I open this mapped file in another place.

Does anyone has a example? Or Does anyone has another solution for shared memory?

mcardia
  • 115
  • 2
  • 10
  • @ctacke has an example on the opennetcf blog: http://blog.opennetcf.com/2011/11/15/sdf-sample-ipc-with-memory-mapped-files/ – Fredrik Ljung Sep 15 '14 at 19:22
  • Thanks! But i think, now, that this may be not what I need. Mapped Files works with threads in the same process. I need something that could work with different proccess. (Like 2 apps that need to access a common data). – mcardia Sep 15 '14 at 19:47
  • 1
    The blog post is about communication between processes. – Fredrik Ljung Sep 15 '14 at 19:51
  • The MMF can definitely be used for multiple processes to share data. – ctacke Sep 15 '14 at 20:19

1 Answers1

0

Here is another MemoryMapped file usage with example for CF: http://www.codeproject.com/Tips/79069/How-to-use-a-memory-mapped-file-with-Csharp-in-Win

Unfortunately ctacke's example is v.e.r.y. s.l.o.w.

josef
  • 5,951
  • 1
  • 13
  • 24