Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::interprocess::string problems
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-07-26 14:37:29


On 26/07/2010 20:00, this_thread wrote:

> Correction, I was forgetting:
>
> const CharAllocator *charAllocator = new
> CharAllocator(m_pShMem.get_segment_manager());
> m_foostring =
> m_pShMem.construct<BoostString>("m_foostring")(*charAllocator);
>
> It compiles now, but I'm getting weird errors during run time that I'm
> having trouble tracking down:
>
> terminate called after throwing an instance of 'std::logic_error'
> what(): basic_string::_S_construct NULL not valid
> Aborted (core dumped)

You are assigning or constructing a string from a null pointer. I think
interprocess is ok, now it's in your hands ;-)

Best,

Ion


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