I don't know which version of boost you're using. This has been addressed in version 1.36 - hopefully in a definitive way. The new documentation includes a discussion on this issue. Robert Ramey Mojmir Svoboda wrote:
hello,
i have big problem using boost::serialization under windows xp (vs2005sp). the thing is: there is a main application and there are .dll as plugins. i'd like to use boost::serialization from within the plugin, but i get segmentation faults immeadiately when boost_serialization.*.dll is loaded into memory.
i traced it to some static_register and then i lost the trace. my guess is that the library tries to allocate some memory, but our own allocator is not loaded and initialized yet...
do you have, please, some recommendations how to use the serialization in this way?
many thanks in advance, mojmir