473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Mar 29 '08 #1
2 3573
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: music4 | last post by:
Greeting, My platform is Solaris 2.8. My question is that if there is a simple way to put a class object in share memory, so that multiple process can use this object. Thanks in advance! Evan
5
by: Anthony | last post by:
Hi, Is there any sample codes or documents about how to send and receive the messages between C++ and C# applications? For instance, I have a C++ dialog application and C# dialog application...
1
by: Jason Jacob | last post by:
To all, Another post. Can anyone tell me what's "Share Memory" ?? It's a projects' requirement to facilitate interop communication between 2 applications using "Share Memory" ..... I've...
1
by: | last post by:
In C++, I can create a share memory that can be share by different processes to use it. But in C#, how can I share data between process and process, ? and between AppDomain and AppDomain? Thanks
3
by: sadanjan | last post by:
Hi , Appreciate if someone can clarify if database Share Memory Limit (2 GB ) in Unix 32 bit boxes is the top limit for all the databases put together in a database or is it for each of the...
1
by: faqi | last post by:
i have an application developed in foxpro, i have two Pc's now i want to use this software from my second pc plz tell me how to share it. by simple file sharing it works but at a time only on one...
3
by: Meteor | last post by:
I have a vs2005 solution containing about 5 projects, three of which have their own .settings files. When I deploy the application, I want all the settings to be in one place - configurable -...
3
by: rohitbasu77 | last post by:
Hi All, can any one please tell me how to allocate share memory in Perl and shell respectively. thanks
4
guillermobytes
by: guillermobytes | last post by:
Hello, I was wondering the cost of creating an instance of an extended class. By that I mean, if I have classes: - A - A1 and A2, where: A1 and A2 extend class A. what do instances A1...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.