id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3412,Memory leak in BOOST_CLASS_EXPORT registration,Runar Undheim ,Robert Ramey,"Added example of code that will give memory leak. The code is tested with MSVC-8.0. When run in debug the program will show three memory leaks. If I set a break point in the void_caster_shortcut constructor the function is run once, but the destructor is never called. {{{ #include #include #include #include #include class Base { friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { } virtual void vTest() { } }; class Level1 : public Base { friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { ar & boost::serialization::base_object(*this); } }; class Level2 : public Level1 { friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { ar & boost::serialization::base_object(*this); } }; BOOST_CLASS_EXPORT(Base) BOOST_CLASS_EXPORT(Level1) BOOST_CLASS_EXPORT(Level2) int _tmain(int argc, _TCHAR* argv[]) { _CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF); return 0; } }}}",Bugs,closed,Boost 1.41.0,serialization,Boost 1.41.0,Problem,fixed,serialization memory leak,