468,468 Members | 2,673 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,468 developers. It's quick & easy.

Shared memory and objects with virtual functions

Anyone knows why it is not possible (at least without a great deal of
"jiggery-pockery" behind the scenes), to store objects that contain
virtual functions in a shared memory block?

I think I know the answer - possibly something to do with unresolvable
function addresses when mapping from vf table to virtual address - but
this is an uneducated guess at best, on my part. It would be useful to
get a more experienced C++ programmers' view on this.

Jul 23 '05 #1
1 1472
Ian
Alfonso Morra wrote:
Anyone knows why it is not possible (at least without a great deal of
"jiggery-pockery" behind the scenes), to store objects that contain
virtual functions in a shared memory block?
No.
I think I know the answer - possibly something to do with unresolvable
function addresses when mapping from vf table to virtual address - but
this is an uneducated guess at best, on my part. It would be useful to
get a more experienced C++ programmers' view on this.


Got it in one!

Ian
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.