Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] Runtime error in load_pointer
From: Richard Crossley (rdc_at_[hidden])
Date: 2010-01-16 06:28:34


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_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of elizabeta petreska
Sent: 15 January 2010 13:32
To: Boost-users_at_[hidden]
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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net