|
Boost Users : |
From: christophe loustaunau (christophe.loustaunau_at_[hidden])
Date: 2008-02-20 11:39:54
Like you and Sebastian said I forgot to open the stream with ios::binary.
Thanks a lot for your answers !
It works !
-- Christophe Loustaunau. 2008/2/20, Robert Ramey <ramey_at_[hidden]>: > > are you sure that the underlying stream was opened with ios::binary? > > Robert Ramey > > "christophe loustaunau" <christophe.loustaunau_at_[hidden]> wrote in message > news:ca77b27f0802200227n2bb4a4d0mf1b365e7eaad626b_at_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_at_[hidden] > http://lists.boost.org/mailman/listinfo.cgi/boost-users > > > _______________________________________________ > Boost-users mailing list > Boost-users_at_[hidden] > http://lists.boost.org/mailman/listinfo.cgi/boost-users >
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net