Link to home
Start Free TrialLog in
Avatar of jaxrpc
jaxrpc

asked on

Shared Memory Pool

Hi, i am trying to find out how a Shared Memory Pool works.

1) A driver will be coded in C will read all the I/O values from a I/O device.
2) All the values will be placed in Memory.
3) Clients coded in VB.net will access the memory area, get the values and perform what they are supposed to do according to the value.

Is the above possible? If possible i need some ideas on the implementation because i am abit lost... But the above is from my understanding of what a shared Memory pool is and its uses... anyone with another understanding of a shared memory pool are welcome to comment...

Can any apps access any memory location?

thanks
ASKER CERTIFIED SOLUTION
Avatar of PockyMaster
PockyMaster
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of farsight
farsight

It might be simpler to roll your own using these .NET wrappers for the .NET clients, and just use memory-mapped-file WIN32 API calls directly in the C driver.

simple library that wraps the Win32 Memory Mapped File services
http://www.winterdom.com/dev/dotnet/index.html
Also, here's tutorial on how to create a windows service and add TCP communications to it.
It's much simpler and clearer that the eggheadcafe example above.
http://www.aspfree.com/c/a/C-Sharp/Creating-a-Windows-Service-with-C-Sharp-introduction/

P.S. A windows service is basically just a program that starts at system startup, and remains running (unless intentionally shut down, or it fails).
I think I had some good suggestions, as did PockyMaster and AlexFM -- so I suggest splitting the points.