cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : General C++ Programming : Shared Memory -- Pointer problem
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  Shared Memory -- Pointer problem

vvadan (17)
HI

I have created an object pool in shared memory
each object encapsulates another object which in turn has a socket object which is a pointer

Now my question is, should the socket object be created in the same memory region (using overloaded new) as that of pool object or it can be created normally using a new operator.

which is better and how to implement that
please explain me with suitable example with source code

Thanks in Advance
Vadan
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us