Re: sharing STL object across process using shared memory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



.



Relevant Pages

  • Re: Python and STL efficiency
    ... efficiency of python and STL. ... you are benching heap allocations and of course heap fragmentation. ...
    (comp.lang.python)
  • Re: Question about STL containers in multithreaded environment
    ... Everything is protected from simultaneous accesses. ... It is possible that failure is caused not by STL itself but by broken ... You have broken your heap before and STL just fails to ...
    (comp.programming.threads)
  • Proof that this assertion about heaps is true
    ... I am using a binary min heap in an effort to optimize a particular ... will definitly restore the heap by definition. ... I apologize for using STL specific terminology. ... be a general question about the properties of heaps and even if you ...
    (comp.theory)
  • maintain project
    ... Until now, I write my code with STL, BOOST... ... and inversely translate the make file to MS ... project, their compatibility ...
    (comp.lang.cpp)
  • Re: why use std:: ?
    ... That is like saying that using C++ is for compatibility with other ... the STL is a part of the C++ language. ... I do use MFC collections when they ...
    (microsoft.public.vc.mfc)