Shared memory and objects with virtual functions

A

Alfonso Morra

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.
 
I

Ian

Alfonso said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top