Re: [boost] [serialization] polymorphic archives runtime failure(was:polymorphic archives ... generates linker errors)

I just want to confirm I have the same issue with boost 1.41.0 built with MSVC 9.0 (Visual Studio 2008). I have created two tests similar to the one Christoph describes ( both with and without DLLs) and I hit exactly the same assert in basic_serializer_map::find(). It looks like while deserializing B via A*, basic_iarchive_impl::load_pointer() is trying to recover a serializer from: boost::serialization::singleton< boost::archive::detail::archive_serializer_map<boost::archive::naked_xml_iar chive> > (or boost::serialization::singleton< boost::archive::detail::archive_serializer_map<boost::archive::naked_text_ia rchive> >, depending on the input archive actually used) but that map is empty. I checked boost::serialization::singleton< boost::archive::detail::archive_serializer_map<boost::archive::polymorphic_i archive> > in the first line of my program and it contains correctly two serializers (one for A and one for B, respectively), proving that the macro BOOST_CLASS_EXPORT_IMPLEMENT(.) has registered those classes. I am not sure why the serializers for A and B do not register with the specific polymorphic archives but only with the base archive. I was under the impression that the polymorphic archives are meant to make that process transparent to the user (especially future archives that are created later). I appreciate any feedback about this issue and please let me know if you need more details. Thank you, Bogdan PS I am using extended type_info_no_rtti. Deserializing via isomorphic pointers (B*->ser->dser->B*) is working.

Bogdan wrote:
I just want to confirm I have the same issue with boost 1.41.0 built
note: I've confirmed that this is an issue that crept in in version 1.40. I'm currently addressing it and hope to fix this in the trunk in the next few days. Robert Ramey

On Dec 7, 2009, at 1:28 PM, Robert Ramey wrote:
Bogdan wrote:
I just want to confirm I have the same issue with boost 1.41.0 built
note: I've confirmed that this is an issue that crept in in version 1.40.
I'm currently addressing it and hope to fix this in the trunk in the next few days.
Is there a trac ticket for this that one could monitor for status?

On Mon, Dec 7, 2009 at 7:28 PM, Robert Ramey <ramey@rrsd.com> wrote:
note: I've confirmed that this is an issue that crept in in version 1.40.
I'm currently addressing it and hope to fix this in the trunk in the next few days.
Thanks for your help! Christoph

Robert Ramey <ramey <at> rrsd.com> writes:
Bogdan wrote:
I just want to confirm I have the same issue with boost 1.41.0 built
note: I've confirmed that this is an issue that crept in in version 1.40.
I'm currently addressing it and hope to fix this in the trunk in the next few days.
Robert Ramey
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thank you for your feedback, I was afraid something changed in the library and I was missing some steps... I've been using Boost.Serialization for quite a few years and it helped me a lot. Bogdan
participants (4)
-
Bogdan
-
Christoph Heindl
-
Kim Barrett
-
Robert Ramey