are you sure that the underlying stream was opened with ios::binary?
 
Robert Ramey
"christophe loustaunau" <christophe.loustaunau@gmail.com> wrote in message news:ca77b27f0802200227n2bb4a4d0mf1b365e7eaad626b@mail.gmail.com...
Hello,

I try to use serialization of boost. I have started with the exemple of bus stop in XML : http://www.boost.org/libs/serialization/example/demo_xml.cpp

I have added to this example a map of 1000 bus_schedule. Then I save this map in a file.
And I relaod this file in a new map.
This works perfectly in XML, but if I try : binary_iarchive I got an boost::archive::archive_exception at memory location 0x00dfdb40..

I don't understand why It woks in XML and not in binary.
I have attached to the mail the source file.

If someone could help me It would be great !

Thanks.

--
Christophe Loustaunau.


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users