|
|
Comments and Discussions
|
|
 |

|
yeah,when i read about this.i don‘t understand too.why??mayber when "if(dw==0){}"to check ERROR_INVALID_DATA.
|
|
|
|

|
Can anyone think of a good example for showing advantages over Naughter's CMemMapFile class(http://www.codeproject.com/win32/cmemmap.asp)?
Naughter continues updating, supporting and helping for using his class. This is a really big point for users of his class.
However Martin's class has its own features so that there must be some good examples that would be harder or much more complicated when using Naughter's class.
HR
|
|
|
|

|
i can't bulid the ptogramm i have error(s)
No thing
|
|
|
|

|
Hello,
First, excellet code
I use your shared memory in a program with 2 threads. At one moment, I stop the thread and I try to free the shared memory so :
if (_SHM != NULL)
{
if ( _SHM->ExistValue ( _SHMName ) )
_SHM->DeleteValue (_SHMName);
delete _SHM;
_SHM = NULL;
}
I must delete the value because when I want to run the thread for a second time I use the same name but with a different size, so If I try to add the value, it give an error (of course )
The problezm is, when I tried to delete the valur, I have an excception error on the line
MoveMemory(moveTo,moveFrom,dwMoveLength);
Can you help me please ???
Fred, idea is the begining
|
|
|
|

|
Hi all
Im familiar with the IPC method of sharing memory
with CreateFileMapping, but how do you share memory
that was already allocated and filled?
for example a driver allocated it,passed the ptr to one process
and another needs to access that buffer.
What if one of these processes is 32bit and the other is 64bit?
thanks, Tom.
|
|
|
|

|
Hi, can anyone tell me something about the mm.h library of C for work with shared memory in Unix?
please
help me
thanks
|
|
|
|

|
This[^] is probably a good place to start.
Steve
|
|
|
|

|
thanks Steve, but i'm seeking for any application, any person than worked with the mm.h library, i need make a proyect about client/server wich the server mounts a shared memory segment (a random numbers linked list ) to several clients can read de list and i need think in the concurency (with semaphores).
Any idea???
i'm taking a course of advanced linux, and is very dificult...i'm programming in C
|
|
|
|

|
sorry, can't help you. It has been 25 years since I did any Unix programming.
Steve
|
|
|
|

|
thanks for the link!
do you know any site or anyone who can know anything about this?
regeards
Mariana
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
Share variables in the shared memory across processes
| Type | Article |
| Licence | |
| First Posted | 6 Nov 2001 |
| Views | 140,075 |
| Downloads | 3,928 |
| Bookmarked | 76 times |
|
|