binary serialization, what's missing

I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ? Any help appreciated. Best regards, Ta, Avi

Avi Bahra wrote:
I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ?
If boost.serialization *crashes*, then it's clearly a bug, regardless of anything else. Please file a ticket with a minimal program that reproduces the crash. Also attach the backtrace. (To the best of my knowledge, text and binary archive have exactly same features) - Volodya

Avi Bahra wrote:
I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ?
Are the underlying streams opened as binary? Jeff

They are designed to be interchangable. Are you sure that the binary stream is opened with "ios::binary"? Robert Ramey "Avi Bahra" <avibahra@googlemail.com> wrote in message news:af1b101f0911250543y7b150b13uf02f7739117f56ab@mail.gmail.com... I have a complex tree structure. When this is serialized with text archive all is well. (i.e on linux/gcc) However when I attempt to use the binary archive, it crashes when trying to serialize a base pointer ? I though that text and binary were interchangeable, have I missed something or is serialization via base pointer not implemented in binary ? Any help appreciated. Best regards, Ta, Avi ------------------------------------------------------------------------------ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Avi Bahra
-
Jeff Flinn
-
Robert Ramey
-
Vladimir Prus