Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess] garbage chars when extending interprocess strings?
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-07-31 08:06:29


On 7/31/2011 1:39 AM, Anthony Foiani wrote:
>
> typedef boost::interprocess::basic_string<
> ShmCharType,
> std::char_traits< ShmCharType>,
> ShmCharAllocatorType
> > ShmStringType;
>

A string allocator will affect the storage of the stored characters, but doesn't affect
the structure that is the body of the basic_string instance itself.

Perhaps the actual string instance is not being shared? The other process has its own
version and doesn't see the change to length.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net