
Hi all, just to example, I tried to execute the code in the "simple example": // create and open a character archive for output std::ofstream ofs("genetic_parameters.txt"); // create class instance const gps_position g(35, 59, 24.567f); // save data to archive { boost::archive::text_oarchive oa(ofs); // write class instance to archive oa << g; // archive and stream closed when destructors are called } // ... some time later restore the class instance to its orginal state gps_position newg; { // create and open an archive for input std::ifstream ifs("filename", std::ios::binary); boost::archive::text_iarchive ia(ifs); // read class state from archive ia >> newg; // archive and stream closed when destructors are called } but at line oa << g; the program break in Kernell32.dll. Any suggestions? Regards, Calogero _________________________________________________________________ The next generation of MSN Hotmail has arrived - Windows Live Hotmail http://www.newhotmail.co.uk

it might be helpful to include boost version, compiler, os etc. Also informatoin as to how the applicaiton was built, makefile, ide, bjam, etc.
Robert Ramey
"calogero bennici"

Hi,
I'm using boost 1.34.1 with msvc7.1
I' ve built boost with bjam.
Calogero
To: boost-users@lists.boost.orgFrom: ramey@rrsd.comDate: Wed, 26 Sep 2007 20:40:44 -0700Subject: Re: [Boost-users] problem with serialization library
it might be helpful to include boost version, compiler, os etc. Also informatoin as to how the applicaiton was built, makefile, ide, bjam, etc.
Robert Ramey
"calogero bennici"
participants (2)
-
calogero bennici
-
Robert Ramey