Share memory between two .net application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gjoshi029

    Share memory between two .net application

    How can i share a common memory between two .net programs.
    Can it be possible.

    Kindly help me.

    Thanks
  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: Share memory between two .net application

    You can't actually share the "memory" because two .NET applications would
    each be runnning in a separate AppDomain. However, you can use techniques
    such as Memory Mapped Files or Named Pipes to "share" communication or data
    between processes.
    -- Peter
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    Short Urls & more: http://ittyurl.net


    "Gjoshi029" wrote:
    How can i share a common memory between two .net programs.
    Can it be possible.
    >
    Kindly help me.
    >
    Thanks
    >

    Comment

    • =?UTF-8?B?QXJuZSBWYWpow7hq?=

      #3
      Re: Share memory between two .net application

      Peter Bromberg [C# MVP] wrote:
      You can't actually share the "memory" because two .NET applications would
      each be runnning in a separate AppDomain. However, you can use techniques
      such as Memory Mapped Files or Named Pipes to "share" communication or data
      between processes.
      It should be noted that CreateFileMappi ng and MapViewOfFile does
      not require a separate file (by using -1 as file handle it gets
      mapped to the pagefile).

      Arne

      Comment

      Working...