not sure if this is the right forum to ask this, but perhaps someone can calrify this one for me.
I have a shared memory implementation similar to the one outlined here. I'm sharing data between instances of a DLL mapped into different processes.
So I create/open a named shared memory segment, get a handle, and then use the handle to MapViewOfFile and get a pointer to the beginning of the memory segment.
Now suppose I need to reallocate the amount of space that's shared in one of the instances of this DLL.
Would calling realloc on the pointer to the beginning of shared memory segment suffice? Since the value of this pointer could be different in every process, it seems to me that I would need to re-MapViewOfFile in all other instances, or does the Windows HANDLE abstraction take care of this for me.
Any insight would be awesome!
Last Visit: 31-Dec-99 19:00 Last Update: 27-Feb-15 7:02