Serialization and null pointers
Hello, I have an object graph that is being serialized using a binary archive. It saves to the file fine, however a class member is being serialized is a null pointer. When I go to open the file, I get an access violation in basic_iarchive.cpp on line 393: bpis_ptr->load_object_ptr(ar, t, co.file_version); t is 0x00000000 Is there a way around this? Thank you.
This shouldn't happen. you might try using an xml_archive so you can better see the output. This will also check that the data saved and data loaded are "in sync". That is that the same data is being saved and loaded. If all that fails, you'lll have to boil it down to a small example and send it in Robert Ramey boost@iyates.com wrote:
Hello,
I have an object graph that is being serialized using a binary archive. It saves to the file fine, however a class member is being serialized is a null pointer.
When I go to open the file, I get an access violation in basic_iarchive.cpp on line 393:
bpis_ptr->load_object_ptr(ar, t, co.file_version);
t is 0x00000000
Is there a way around this? Thank you.
participants (2)
-
boost@iyates.com
-
Robert Ramey