title: Is It Possible for Two Applications to Create a Memory Mapped File with the Same Name?
body: <p>I read on MSDN</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, including multiple processes, to modify the file by reading and writing directly to the memory.</p>
  </blockquote>
  <p><strong>Source:</strong> <a href="https://docs.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files</a></p>
  <p>And on another forum:</p>
  <blockquote>
  <p>Memory-mapped files can be shared across multiple processes. 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>What would happen if I create two memory mapped files using <code>MemoryMappedFile.CreateFromFile</code> from two different applications, and assign them the same name? Will this throw an exception?</p>