
Bronek Kozicki wrote:
So far I'm unable to debug Boost test unit produced by como on MSVC71 backend :( - but anyway I will try this first. Maybe you could prepare
OK, I managed to debug test_polymorphic_archive_polymorphic_xml_warchive.exe . Memory access violation error is thrown inside basic_ofstream::~basic_ofstream(), called at line 43 of test_polymorphic_archive.cpp (closing scope) ie. when destroying some automatic variable created in this code: { test_ostream os(testfile, TEST_STREAM_FLAGS); test_oarchive oa_implementation(os); boost::archive::polymorphic_oarchive & oa_interface = oa_implementation; oa_interface << BOOST_SERIALIZATION_NVP(d); } Here is simple test program I wrote to reproduce this error: #include <fstream> #include <boost/config.hpp> #include "test_tools.hpp" int main() { const char * testfile = boost::archive::tmpnam(NULL); test_ostream os(testfile, TEST_STREAM_FLAGS); test_oarchive oa_implementation(os); printf("boom\n\n"); } B.