Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-03-05 11:38:05


This would be best addressed by having the serialization in either
the one module (the dll) or the other (mainline exe) but not both.

Robert Ramey

jiang.yu(mos) wrote:
> Hi!
>
> I meet trouble in use serialization in dll
> in dll export a function like hi_dll()
> void hi_dll()
> {
> std::map<std::string,int> m_map;
> std::ostringstream os;
> boost::archive::text_oarchive oa(os);
> oa & m_map;
> std::cout << os.str() << std::endl;
> }
> and in exe there is a function hi_exe() code is the same as hi_dll
> void hi_exe()
> {
> std::map<std::string,int> m_map;
> std::ostringstream os;
> boost::archive::text_oarchive oa(os);
> oa & m_map;
> std::cout << os.str() << std::endl;
> }
>
> in Debug mode , the exe call both hi_exe() and hi_dll() will assert at
> extended_type_info.cpp line 71
>
> assert(lookup(eti) == m_self->m_map.end());
>
> vc7.1
> boost 1.33.1
> link with serialization as dll
>
> then what to do? thanks in advance.
>
> Best Regards
> mos


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