
A complete shot in the dark but it is possible it might be the problem. Sometime back you showed your solution to serializing a shared_ptr<> to const object [1]. As you showed it, it was asymmetric in that it wrote out a shared_ptr<X const> whilst reading in a shared_ptr<X>. Once you add polymorphic types to the archive you could encounter problems similar to those you mention. HTH, Richard. [1] http://tinyurl.com/yae5stv --- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of elizabeta petreska Sent: 15 January 2010 13:32 To: Boost-users@lists.boost.org Subject: [Boost-users] [Serialization] Runtime error in load_pointer Hello I do not have small working example, and can't reduce the problem to such. I know that is impossible to say what can be the problem from the following information, but still I 'll give it a try. I am getting runtime error in STL ( vector is out of range error ) when trying to load my shared pointer. The runtime error happens in basic_iarchive.cpp line line 431 : cobject_id_vector[i].bpis_ptr = bpis_ptr; I am using boost 1.41. Anyone has seen this error and maybe knows what can get to it. Thanks