473,378 Members | 1,422 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,378 software developers and data experts.

.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 2327
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.