
Est escribió: Hi all I tested the 1.42 release candidate and it works. Thank you Est.
Hi All
I'm developing an image processing app.
In my app, I serialize a boost::ptr_vector of an abstract base class to a polymorphic xml archive. I checked all my polymorphic classes are exported with BOOST_SERIALIZATION_EXPORT and BOOST_SERIALIZATION_ASSUME_ABSTRACT for abstract classes, and it's working correctly with boost 1.38.
If I update to boost 1.41, I can save archives without problems. When I try to load the resulting archive, I get a crash:
Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 boost::archive::detail::basic_iarchive_impl::load_pointer (this=0x1b955a00, ar=@0xbfffe598, t=@0xbfffd8d0, bpis_ptr=0x0) at libs/serialization/src/basic_iarchive.cpp:429 429 class_id_type new_cid = register_type(bpis_ptr->get_basic_serializer());
I can read the archive with my app compiled with boost 1.38.
I'm using gcc 4.0.1 on OSX and gcc 4.3 on linux, all 32 bits. I'm not using DLLs.
I ran the unit tests of the serialization library. All passed.
I'm in the process of extracting a small example that reproduces the crash.
Do you have any idea how can I fix it?
Thank you.
Est.