Subject: Re: [boost] Boost Serialization: Serializing large objects
From: Adlai Shawareb (adlai_at_[hidden])
Date: 2017-10-09 23:21:28
> We are trying to text serialize a 700 MB object. We are getting an archive_exception: input stream error.
> This is on a 32-bit QNX system.
> Is there a limit to the size of the object that can be serialized?
> Is there anything we can do to fix or work around this?
> Here is the code we are using:
> std::stringstream ss_;
> boost::archive::text_oarchive oa(ss_, boost::archive::no_header);
> oa << &object;
Thanks for your help. When serializing into a stringstream, how does Boost add or allocate memory to the stringstream?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk