473,382 Members | 1,348 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,382 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 4822
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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...

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.