OK, let me ask a simpler question:

If I have a structure S which contains a shared memory allocator, can that structure be safely stored in shared memory? (e.g. if I construct S in one process, use the memory allocator to construct some other pointer p in shared memory, then locate S in another process and use the memory allocator to destroy pointer p, will that work properly, or have I invited Disaster?)

On Mon, Apr 28, 2008 at 5:40 PM, Jason Sachs <jmsachs@gmail.com> wrote:
I'm trying to wrap my head around how I would implement a vector of unions of strings/integers/doubles in shared memory. (for those familiar with Micro$oft COM, this would essentially be a SAFEARRAY of VARIANTs)