473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4838
You can use interop to access the NT shared memory API.

"CristianMo ri"
<REMOVEcristian .mori@NO_SPAM_P LEASEtechint.it REMOVE_THIS_ALS O> wrote in
message news:7A******** *************** ***********@mic rosoft.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.

"CristianMo ri"
<REMOVEcristian .mori@NO_SPAM_P LEASEtechint.it REMOVE_THIS_ALS O> wrote in
message news:7A******** *************** ***********@mic rosoft.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
"MoriCristi an" <Mo**********@d iscussions.micr osoft.com> wrote in message
news:AF******** *************** ***********@mic rosoft.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.

"CristianMo ri"
<REMOVEcristian .mori@NO_SPAM_P LEASEtechint.it REMOVE_THIS_ALS O> wrote in
message news:7A******** *************** ***********@mic rosoft.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
"MoriCristi an" <Mo**********@d iscussions.micr osoft.com> wrote in message
news:AF******** *************** ***********@mic rosoft.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.

"CristianMo ri"
<REMOVEcristian .mori@NO_SPAM_P LEASEtechint.it REMOVE_THIS_ALS O> wrote in
message news:7A******** *************** ***********@mic rosoft.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
Morantex
9 New Member
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
>
>
> "MoriCristi an" <MoriCristian@d iscussions.micr osoft.com> wrote in message
> news:AF375BFA-39FD-4CB9-8221-7845DE3F88FB@mi crosoft.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.
> >>
> >> "CristianMo ri"
> >> <REMOVEcristian .mori@NO_SPAM_P LEASEtechint.it REMOVE_THIS_ALS O> wrote in
> >> message news:7AEB1F0D-57F3-4463-AAD8-9933DAF654D1@mi crosoft.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
4403
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 SharedMemAccess_Mutex_ctypes.py or SharedMemAccess_Mutex_win32all.py
3
2142
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++. It was ported from UNIX to run under Windows using .NET. If for no other reason than as an educational exercise, I have been wondering what it would take to rewrite the system under C#. The system currently has about a 100K “shared...
11
4896
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 find templates?
1
2114
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 seems like one option, the other appears to be just having each "object" you want to share be a shared mem space to itself: allocate objects into a defined shared mem space. But here you have many many objects being shared. Having a VM...
14
8208
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 present the shared memory contains a few fixed-size structs, but I really need to be able to store more complex variable-sized data in there. So the next task is to work out how to store C++ objects, and if possible STL containers, in this shared...
12
5538
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 with 64 Gb of memory with a single non-partitioned database using extended storage and with intra-parallelism enabled. I've been experimenting with changing various parameters in an attempt
5
7078
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 getting this error when I try to run the command 'db2 "backup database dbname online to /opt/BACKUP"' on my 3 databases: SQL1042C An unexpected system error occurred. SQLSTATE=58004
4
3112
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 course). I need distinct apps for reasons like user interaction/access rights, error compartments, and because the size of the code, access to various ports, ... In the end the apps should run as Windows Service(s).
21
8374
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
587
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 memory segment if it is open to all, i.e. shared memory mapped into all processes memory area. I don't want to use TCP/IP client/server between the apps and a data store process due to the overhead.
0
8686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8911
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8882
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6533
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5872
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.