473,505 Members | 14,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net shared memory

H

just one question: is there an equivalent to the creation of shared memory sections via 'old' Win32- API functions in real .net (VB or C#)

Thanks a lo
Andreas
Nov 22 '05 #1
6 2334
Hi Andreas,

Not without Interop (calling win32 api functions).
You might use remoting instead.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Andreas Hoetker" <so*****@gmx.net> wrote in message
news:84**********************************@microsof t.com...
Hi

just one question: is there an equivalent to the creation of shared memory sections via 'old' Win32- API functions in real .net (VB or C#)?
Thanks a lot
Andreas

Nov 22 '05 #2
Hello Andreas,

Miha's reply is corret. In addition, please refer to the following
documetation on P/Invoke to call unmanaged DLL funcitons in .NET:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconConsumingUnmanagedDLLFunctions.asp

Please feel free to let me know if any further is needed.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #3
Hello Andreas,

Miha's reply is corret. In addition, please refer to the following
documetation on P/Invoke to call unmanaged DLL funcitons in .NET:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconConsumingUnmanagedDLLFunctions.asp

Please feel free to let me know if any further is needed.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #4
There's a library referenced here:

http://msdn.microsoft.com/vcsharp/te...s/default.aspx

Look for FileMap

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://weblogs.asp.net/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"Andreas Hoetker" <so*****@gmx.net> wrote in message
news:84**********************************@microsof t.com...
Hi

just one question: is there an equivalent to the creation of shared memory sections via 'old' Win32- API functions in real .net (VB or C#)?
Thanks a lot
Andreas

Nov 22 '05 #5

I have a similar situation and would be grateful for anyone's help:

- several applications running on different machines.

- all apps need to access data from a file that is updated fro
time-to-time, but due to performance requirements, it would be too slo
to read from the file. Data from the file must be placed into a share
memory object on all machines.

- Each app running on a machine needs to obtain a reference to th
shared memory object on that machine

- When the file is updated, the shared memory objects residing on al
of the machines need to be refreshed with the new file data.

Is remoting still the best way to do this in .net, or is there a bette
way
-
bob lawso
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message294508.htm

Nov 22 '05 #6
Morantex
9 New Member
Hello, I realize this issue was being discussed some months ago, but wanted to make you aware of a new .NET component that addresses this and related issues.

You are encouraged to install the preview and explore the technology.

This is far more than a class wrapper around Win32 and includes features that are simply unavailable in an off-the-shelf component; it supports both 32-bit and 64-bit Wibndows.

It does not at this time address the sharing of memory across machine boundaries, but may do if enough customers place value on this.

The abstractions provided in the class library go far beyond those offered at the raw OS level insofar as sharing memory is concerned and include shared variables, shared arrays and powerful object persistence support.

Rgds
Hugh Moran
http://www.morantex.com/Persistore.aspx




I have a similar situation and would be grateful for anyone's help:

- several applications running on different machines.

- all apps need to access data from a file that is updated fro
time-to-time, but due to performance requirements, it would be too slo
to read from the file. Data from the file must be placed into a share
memory object on all machines.

- Each app running on a machine needs to obtain a reference to th
shared memory object on that machine

- When the file is updated, the shared memory objects residing on al
of the machines need to be refreshed with the new file data.

Is remoting still the best way to do this in .net, or is there a bette
way


-
bob lawso
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message294508.htm
May 1 '06 #7

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

Similar topics

0
4356
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
2117
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
4864
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
2103
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
8176
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
5508
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
7043
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
3099
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
8350
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...
0
7216
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
7303
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
7367
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
7471
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
5613
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,...
1
5028
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...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.