By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,885 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,885 IT Pros & Developers. It's quick & easy.

Share memory between two .net application

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

Kindly help me.

Thanks
Mar 29 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Mar 29 '08 #2

P: n/a
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 CreateFileMapping and MapViewOfFile does
not require a separate file (by using -1 as file handle it gets
mapped to the pagefile).

Arne
Mar 29 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.