Boost logo

Boost :

Subject: Re: [boost] Boost 1_41 Binary archive exceptions
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-12-29 06:23:30


On Thu, Dec 29, 2011 at 10:43 AM, KARAN <msree80_at_[hidden]> wrote:
> I am porting from Linux 32 bit to 64 Bit(x86_64)(Boost Version :1_41). I am
> facing an Binary archive exceptions mainly
> (std::bad_alloc,St12length_error-basic_string::resize).
>
> There are no exception during the file saving, but when I do a restore I am
> facing the above exceptions.
> The same works very well if I change it to text archives. How can I make it
> work with binary files?

Just a wild guess, did you open the file/stream as binary?
What platform are you using?

-- 
Olaf

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