Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization - 1.35] Crash while serializing
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-09-22 13:06:50


Try adding

BOOST_CLASS_EXPORT(ConcreteCondition)

Robert Ramey

Soumen wrote:
> Hi,
>
> I've following class hierarchy:
>
> FilterCondition <---+--- CompositeCondition
> |
> +--- ConcreteCondition
>
> FilterCondition is ABC. FilterCondition has certain data members
> which I need to serialize.
>
> I already have another class "Table" for which serialization works
> perfectly. Now, I've added a pointer of type "FilterCondition" as a
> member to "Table". Say, the member name is "filterCond_".
>
> Now, as soon as I add following line in Table::serialize(), I get a
> crash :
>
> ar & filterCond_;
>
> This happens even though I make body of FilterCondition::serialize(),
> CompositeCondition::serialize() and
> ConcreteCondition::serialize() empty.
>
> In Table::serialize(), I've verified that filterCond_ is a valid
> pointer. I've declared FilterCondition as abstract through
> BOOST_CLASS_ABSTRACT macro as well.
>


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