It seems I just cant make myself understood....
I'll try one more time...
Here is what I want to do :
Process A creats a shared memory object
ShMem1.
The given pointer is treated as pointing to Object
Obj1 of class
Class1.
Class1 defines a virual functions
F1().
Therefore,
Class1 has a
virtual function table pointer
pointing to an area containing the table.
ProcessB then maps to
ShMem1,
casting the resulting pointer to
Class1.
Thus
Obj1 is shared.
The problem I forsee is sharing the
virtual function table pointer,
which, in
ProcessB's context,
point to nothing meaningfull.
How can this problem be avoided, if at all ?