Boost logo

Boost Users :

From: christophe loustaunau (christophe.loustaunau_at_[hidden])
Date: 2008-02-20 06:09:07


That's it !

Many thanks Sebastian !

2008/2/20, MOSS Sebastian <Sebastian.MOSS_at_[hidden]>:
>
> Hi Christophe,
>
> At a first guess, could you try creating your fstreams with
> std::ios::binary?
>
> s
>
> > -----Original Message-----
> > From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> > bounces_at_[hidden]] On Behalf Of christophe loustaunau
> > Sent: Wednesday, February 20, 2008 11:27 AM
> > To: boost-users_at_[hidden]
> > Subject: [Boost-users] Serialization problem
> >
> > 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.
>
> *******************************
> This e-mail contains information for the intended recipient only. It may
> contain proprietary material or confidential information. If you are not
> the intended recipient you are not authorised to distribute, copy or use
> this e-mail or any attachment to it. Murex cannot guarantee that it is virus
> free and accepts no responsibility for any loss or damage arising from its
> use. If you have received this e-mail in error please notify immediately
> the sender and delete the original email received, any attachments and all
> copies from your system.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Christophe Loustaunau.


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