Re: [boost] Boost Serialization of shared_ptr

*sigh*, as if I hadn’t known it, that program too fails at the very same assertion, „basic_iarchive.cpp“ at line 390. Uncommenting that line, of course, does no good either and leaves me with another segmentation fault: /test_serialize.exe Serialized form: 22 serialization::archive 4 0 1 2 7 derived 1 0 0 1 0 1 10 derived id Segmentation fault What’s wrong with my compiler anyway? Or with the class ids it generates? Thanks so far and greeetz Kessi No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.11/1200 - Release Date: 27.12.2007 13:34

On Fri, 28 Dec 2007 21:17:06 +0100, Kesseli Pascal wrote:
*sigh*, as if I hadn’t known it, that program too fails at the very same assertion, „basic_iarchive.cpp“ at line 390. Uncommenting that line, of course, does no good either and leaves me with another segmentation fault:
It is good that there is an isolated test case. At the worst, you can use raw pointers and stuff them into shared pointers on the other side so long as you aren't depending on the reference counts actually matching. [snip]
What’s wrong with my compiler anyway? Or with the class ids it generates?
I'm not sure, I never managed to get that far. But see Robert's reply http://lists.boost.org/boost-users/2007/03/26630.php for a possible starting point. Although I don't know much about the internals, I can be a cheerleader. Go Kesseli go! :-) -- Sohail Somani http://uint32t.blogspot.com

here are some ideas: a) using this test use an xml_archive. This will help check class IDs b) double check that the test_shared_ptr in the library works (or fails) c) you could try the next serialization library which can be found at www.rrsd.com Robert Ramey Kesseli Pascal wrote:
*sigh*, as if I hadnt known it, that program too fails at the very same assertion, basic_iarchive.cpp at line 390. Uncommenting that line, of course, does no good either and leaves me with another segmentation fault:
/test_serialize.exe
Serialized form: 22 serialization::archive 4 0 1 2 7 derived 1 0
0 1 0
1 10 derived id
Segmentation fault
Whats wrong with my compiler anyway? Or with the class ids it generates?
Thanks so far and greeetz
Kessi
No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.11/1200 - Release Date: 27.12.2007 13:34
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (3)
-
Kesseli Pascal
-
Robert Ramey
-
Sohail Somani