By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,841 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

.net shared memory

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

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

P: 9
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 discussion thread is closed

Replies have been disabled for this discussion.