Re: sharing STL object across process using shared memory
- From: "Volodymyr M. Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 17:31:07 +0200
In this case one has to remember about ABE - application binary
compatibility. Each process has to be compiled with the same version of STL.
If processes are compiled with different version of STL, the object size
might be different, so for sure it is a bug.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> wrote in message
news:%23s3jPzYmIHA.4536@xxxxxxxxxxxxxxxxxxxxxxx
You can't. An stl object is just a class object, which is storing it's
data in the heap of process. So if you just copy stl object into another
process, it will contain pointers to a data which is in the heap of
different process.
I think it may be possible. He just requires an allocator which works on
shared memory.
Stephen Howe
.
- Follow-Ups:
- Re: sharing STL object across process using shared memory
- From: Stephen Howe
- Re: sharing STL object across process using shared memory
- From: Volodymyr M. Shcherbyna
- Re: sharing STL object across process using shared memory
- References:
- sharing STL object across process using shared memory
- From: Nilesh
- Re: sharing STL object across process using shared memory
- From: Volodymyr M. Shcherbyna
- Re: sharing STL object across process using shared memory
- From: Stephen Howe
- sharing STL object across process using shared memory
- Prev by Date: Re: push_back causes crash at the limits of memory
- Next by Date: Re: sharing STL object across process using shared memory
- Previous by thread: Re: sharing STL object across process using shared memory
- Next by thread: Re: sharing STL object across process using shared memory
- Index(es):
Relevant Pages
|