
29 Dec
2011
29 Dec
'11
11:23 a.m.
On Thu, Dec 29, 2011 at 10:43 AM, KARAN <msree80@yahoo.co.in> 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