Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since .NET Framework 4.0 you can use Memory Mapped Files for this, I believe it would be faster than file system based approach since you do not need expensive file system IO operations. </p> <blockquote> <p>A memory-mapped file contains the contents of a file in virtual memory. This mapping between a file and memory space enables an application, <strong>including multiple processes</strong>, to modify the file by reading and writing directly to the memory. Memory-mapped files <strong>can be shared across multiple processes</strong>. Processes can map to the > same memory-mapped file by using a common name that is assigned by the process that created the file</p> </blockquote> <p>So to share MMF across multiple processes you just need to share a MMF name, so you can consider following approach:</p> <ul> <li>Engine creates MMF file and share with Viewer just a name (string)</li> <li>View access MMF using <a href="http://msdn.microsoft.com/en-us/library/system.io.memorymappedfiles.memorymappedfile.openexisting.aspx" rel="noreferrer">MemoryMappedFile.OpenExisting(sharedName)</a> method (see <a href="http://msdn.microsoft.com/en-us/library/dd997372.aspx" rel="noreferrer">MSDN</a> for an example accessing same MMF from different processes)</li> </ul> <p>Useful links:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/dd997372.aspx" rel="noreferrer">Memory-Mapped Files</a></li> <li><a href="http://blogs.msdn.com/b/salvapatuel/archive/2009/06/08/working-with-memory-mapped-files-in-net-4.aspx" rel="noreferrer">Working with memory mapped files in .NET 4</a> - highly recommend reading this article which describes why MMF really <code>"is the most efficient way for multiple processes on a single machine to communicate with each other"</code>. Basically it show that all other IPC options are MMF-based. </li> </ul> <p>(From the mentioned above article) If we check other IPC methods we can see the following architecture: <img src="https://i.stack.imgur.com/Dzmni.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload