Re: [Boost-users] Serialization: crash atlaunchofprogram(duetoboost::serialization::base_object)
Hi I've tried to set up a small example that can reproduce the problem, however I cannot seem to succeed... One thing is sure, the crash is due to the BSL and the base_object thing, because if I change this only thing, the program goes from running perfectly to crashing at launch. Note that it is not really a problem of a class having multiple parents (this could happen if for example you use multiple inheritance). It is a problem of a class "switching parents". Jean-Noël -----Message d'origine----- De : boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] De la part de Robert Ramey Envoyé : vendredi 7 avril 2006 06:25 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Serialization: crash atlaunchofprogram(duetoboost::serialization::base_object) Note that there is a test test_..._mi which tests serialization with classes which have multiple parents. So I would hope that this wouldn't be a problem. But you never know Robert Ramey RIVASSEAU Jean Noel wrote:
Ok, I will try to send a small example to the list tomorrow. In fact I think everything lies in the fact that using boost::serialization::base_object also registers the fact that the classes are parent and child. The serialization system needs to know that in order to make casts later.
Somehow it probably does not like it when it tries to register several different classes as the parent of the same class.
Jean-Noël
Hmmm - if its crashing at launch - then it never invokes the if version .. else .. code so I don't see the difference. Try commenting out the if/else code and replicating the test_... mi test to see if it crashes at launch. Robert Ramey RIVASSEAU Jean Noel wrote:
Hi
I've tried to set up a small example that can reproduce the problem, however I cannot seem to succeed...
One thing is sure, the crash is due to the BSL and the base_object thing, because if I change this only thing, the program goes from running perfectly to crashing at launch.
Note that it is not really a problem of a class having multiple parents (this could happen if for example you use multiple inheritance). It is a problem of a class "switching parents".
participants (2)
-
RIVASSEAU Jean Noel
-
Robert Ramey