473,396 Members | 2,024 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.

Shared Memory

Hi there
Is there a way in .NET to do shared memories between applications running on
the same machine?

Thanks
Jul 23 '05 #1
5 4823
You can use interop to access the NT shared memory API.

"CristianMori"
<REMOVEcristian.mori@NO_SPAM_PLEASEtechint.itREMOV E_THIS_ALSO> wrote in
message news:7A**********************************@microsof t.com...
Hi there
Is there a way in .NET to do shared memories between applications running
on
the same machine?

Thanks

Jul 24 '05 #2
I don't want to use any interop. I would like just to use .NET native
methods...

"David Levine" wrote:
You can use interop to access the NT shared memory API.

"CristianMori"
<REMOVEcristian.mori@NO_SPAM_PLEASEtechint.itREMOV E_THIS_ALSO> wrote in
message news:7A**********************************@microsof t.com...
Hi there
Is there a way in .NET to do shared memories between applications running
on
the same machine?

Thanks


Jul 24 '05 #3
Hi,

You cannot do this without using interop... (behind all of this you must
call some win32 api functions)..

See: http://www.habjansoftware.com/ipc_library.aspx

Regards,
Josip Habjan
http://www.habjansoftware.com
"MoriCristian" <Mo**********@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I don't want to use any interop. I would like just to use .NET native
methods...

"David Levine" wrote:
You can use interop to access the NT shared memory API.

"CristianMori"
<REMOVEcristian.mori@NO_SPAM_PLEASEtechint.itREMOV E_THIS_ALSO> wrote in
message news:7A**********************************@microsof t.com...
> Hi there
> Is there a way in .NET to do shared memories between applications
> running
> on
> the same machine?
>
> Thanks


Jul 24 '05 #4
I Do not ereqjuire to use real shared memoryes... i just need to share the
same instance of a class between several process. I tryed something with
remoting using a tcp channel but it is far too slow.
Is there a way, using remoting, to share a class instance in a fast (very
fast if possible) way?

Thanks

"Josip Habjan" wrote:
Hi,

You cannot do this without using interop... (behind all of this you must
call some win32 api functions)..

See: http://www.habjansoftware.com/ipc_library.aspx

Regards,
Josip Habjan
http://www.habjansoftware.com
"MoriCristian" <Mo**********@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I don't want to use any interop. I would like just to use .NET native
methods...

"David Levine" wrote:
You can use interop to access the NT shared memory API.

"CristianMori"
<REMOVEcristian.mori@NO_SPAM_PLEASEtechint.itREMOV E_THIS_ALSO> wrote in
message news:7A**********************************@microsof t.com...
> Hi there
> Is there a way in .NET to do shared memories between applications
> running
> on
> the same machine?
>
> Thanks


Jul 24 '05 #5
May I suggest you examine Persistore from Morantex.

This is a very functional managed library that provides great support for true shared memory, shared variables (and arrays) as well as object persistence.

It supports 32-bit and 64-bit Windows, the latter means you can share vast amounts of data.

see: http://www.morantex.com/Persistore.aspx



I Do not ereqjuire to use real shared memoryes... i just need to share the
same instance of a class between several process. I tryed something with
remoting using a tcp channel but it is far too slow.
Is there a way, using remoting, to share a class instance in a fast (very
fast if possible) way?

Thanks

"Josip Habjan" wrote:
[color=blue]
> Hi,
>
> You cannot do this without using interop... (behind all of this you must
> call some win32 api functions)..
>
> See: http://www.habjansoftware.com/ipc_library.aspx
>
> Regards,
> Josip Habjan
> http://www.habjansoftware.com
>
>
> "MoriCristian" <MoriCristian@discussions.microsoft.com> wrote in message
> news:AF375BFA-39FD-4CB9-8221-7845DE3F88FB@microsoft.com...[color=green]
> >I don't want to use any interop. I would like just to use .NET native
> > methods...
> >
> > "David Levine" wrote:
> >[color=darkred]
> >> You can use interop to access the NT shared memory API.
> >>
> >> "CristianMori"
> >> <REMOVEcristian.mori@NO_SPAM_PLEASEtechint.itREMOV E_THIS_ALSO> wrote in
> >> message news:7AEB1F0D-57F3-4463-AAD8-9933DAF654D1@microsoft.com...
> >> > Hi there
> >> > Is there a way in .NET to do shared memories between applications
> >> > running
> >> > on
> >> > the same machine?
> >> >
> >> > Thanks
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
May 6 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Srijit Kumar Bhadra | last post by:
Hello, Here is some sample code with pywin32 build 203 and ctypes 0.9.6. Best regards, /Srijit File: SharedMemCreate_Mutex_win32all.py # This application should be used with...
3
by: alanrn | last post by:
I would like to start a dialog on how to implement the equivalent functionality of UNIX shared memory in .NET. I work with a factory automation system. The bulk of the system is written in C/C++....
11
by: Michael Schuler | last post by:
The use of STL in shared memory poses a real problem since (non-smart) pointers are not allowed there. Is there any solution for containers in shared memory using smart pointers? Where can I...
1
by: myren, lord | last post by:
When I first discovered shared memory (between multiple processes) I immediately started thinking of how to build my own VM subsystem + locking mechanisms for a large single block of memory. This...
14
by: phil_gg04 | last post by:
Dear C++ Experts, Over the last couple of months I have been writing my first program using shared memory. It has been something of an "in-at-the-deep-end" experience, to say the least. At...
12
by: Jeremy | last post by:
Hi all, I'm getting very confused about how DB2 uses shared memory and I wonder if someone could clarify matters for me, please ? We are running 32bit DB2 V7.2 FP9 under AIX 4.3.3 on a machine...
5
by: Jim | last post by:
Hello, I have a broken server that we are going to be moving off to a new server with a new version of DB2 but here is what I have right now: RedHat 7.0 (2.2.24smp) DB2 v6.1.0.40 I am...
4
by: herbert | last post by:
I am coding a dozen "background" realtime apps for factory automation in .NET 2.0. The apps need to share a common memory as there are lots of variables to be shared (and synchronized of...
21
by: llothar | last post by:
Hello, i need to manage a heap in shared memory. Does anybody know about a portable (win32+mac+posix) c implementation for this.
5
by: Sune | last post by:
Hi all, I want to make data stored in-memory (not disk) available to several processes. My concern is that poorly written C applications with dangling pointers may(will) damage the data in this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.