473,396 Members | 1,914 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.

.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 2331
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...
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
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...

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.