.net shared memory

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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#)?
 
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/default.asp?url=/library/en-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.
 
There's a library referenced here:

http://msdn.microsoft.com/vcsharp/team/code/libraries/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 said:
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#)?
 
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
 
Back
Top