Le 12 juil. 2010 à 22:43, Robert Ramey a écrit :

David Raulo wrote:


#8  0x001df891 in
boost::serialization::throw_exception<boost::archive::archive_exception>
(e=@0xbfffe2d0) at throw_exception.hpp:36
#9  0x001a3cee in
boost::archive::detail::iserializer<my_xml_iarchive,
MyClass>::load_object_data (this=0xbea698, ar=@0xbffff284,
x=0x2a19770, file_version=36107) at iserializer.hpp:173


Here you can see that the original version 20090123 got truncated to
36107 == 20090123 & 65535. This in itself might be a bug, I'm not
sure.

I can't see this.  But I do see how this assertion would be tripped.

in the backtrace, the value of the file_version argument is 36107,
whereas in the XML archive, the version is 20090123. So it looks
to me that something truncates the value to 16 bits.


 If you comment out this assertion does this make it work?

Will do tomorrow, and report back.

Thanks.

David.