Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9612: Memory Access Violation when recursively serializing classes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-31 18:04:12
#9612: Memory Access Violation when recursively serializing classes
------------------------------------------+---------------------------
Reporter: Chris Rusby <chris.rusby@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+---------------------------
Comment (by brandon.kohn):
The singleton<iserializer<Archive,TestObject> > is the thing being
duplicated, and it is exported. BOOST_DLL_EXPORT is (in msvc) always
defined as _declspec(dllexport), and is used on the static public
interface of the singleton type. Near as I can tell, this means it will be
exported from every DLL or exe in which it is included. I don't know
enough about what could be done differently to be able to call it a bug.
I'm surprised we haven't run into an issue like this example in our
codebase as we use a lot of DLLs. I suppose we tend to concentrate our use
of serialization in the same DLLs as where the types are exported. Perhaps
that could be a workaround?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9612#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC