Boost Users :
Subject: Re: [Boost-users] [Boost.serialization] unexpected bad_cast exception while deserializing some arbitrary instances (e.g.: ar & data) ...
From: troy d. straszheim (troy_at_[hidden])
Date: 2009-05-26 13:17:08
Francois Mauger wrote:
> I do not understand where this 'bad_cast' exception comes from.
> For me it as nothing to do with:
> - the format of the archive (I know the archive file is ok as the test
> program store/load is properly)
> - the wrapping within Python (I can make it run ok within a sample
> python script)
You could try adding this to the top of your script:
flags = sys.getdlopenflags()
sys.setdlopenflags(flags | dl.RTLD_GLOBAL)
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