View Single Post
  #3 (permalink)  
Old 29-Jun-2009, 22:21
castord's Avatar
castord castord is offline
Student Penguin
 
Join Date: Jun 2008
Location: As. - Paraguay - GMT -4
Posts: 95
castord hasn't been rated much yet
Default Re: Shared memory and C++

Thank you.

How can I provide that storage?

I though it was a C++ memory management issue because I did something similar in C but with less complexity and correct results.

I don't understand why it stop pointing to the right place when I did the casting.

I tried to do something like:
Code:
to->Table = (test2 *)((char)destination + 8);
+ 8 because I have two 4 bytes integers.

The code is wrong but at least I get to->Table points to destination + 8, inside the shared memory.

I still looking for the answer.
Reply With Quote