Boost logo

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)

Hi Francois,

You could try adding this to the top of your script:

      import dl
      import sys
      flags = sys.getdlopenflags()
      sys.setdlopenflags(flags | dl.RTLD_GLOBAL)


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at