Boost logo

Boost :

Subject: Re: [boost] Boost Serialization: Serializing large objects
From: Robert Ramey (ramey_at_[hidden])
Date: 2017-10-05 18:54:52


On 10/5/17 10:41 AM, Adlai Shawareb via Boost wrote:
> 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;
>
> Adlai
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

suggestion: Try using a text file stream rather than a stringstream.

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk