|
Boost Users : |
Subject: Re: [Boost-users] Boost 1.45 Serialization : Getting archive exceptionwhile loading
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-01-12 11:43:30
Tejaswin Macharla wrote:
> Hi,
>
>
> I have changed the sample code given in the Boost site for
> Serialization and the saving of the file works fine.
> The code works fine without the switch case as it executes save and
> load in the same session. I can save and load in the same session.
> If I close the application and open the application again and try to
> load the saved(serialized) file, it is throwing an Archive Exception.
>
>
> I am trying this for a game that I am working on so as to save and
> load in different sessions.
>
>
This look OK to me.
There is a pair of examples in the package. demo_save and demo_load.
(also demo_xml_save and demo_xml_load). Try these examples. If
they work - compare them to your own test. If they don't work, let me know.
Robert Ramey
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