|
Boost Testing : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-07-12 04:19:55
Robert Ramey wrote:
[snip]
> So pointer_oserializer<T, Archive>::instance is a NULL or something like
> that. The static instance isn't getting instantiated at pre-main time as it
> should.
I put some traces into the various instantiate methods, and this is what I
get when running the test for test_registered_text_archive:
Archive=boost::archive::text_iarchive, T=polymorphic_derived1,
iserializer=1400b2b40
Archive=boost::archive::text_iarchive, T=polymorphic_derived2,
iserializer=1400b2ba0
Archive=boost::archive::text_oarchive, T=polymorphic_derived1,
oserializer=1400b2bb8
Archive=boost::archive::text_oarchive, T=polymorphic_derived2,
oserializer=1400b2be8
Archive=boost::archive::text_oarchive, T=polymorphic_derived1, const
pointer_oserializer<T, Archive> pointer_oserializer<T,
Archive>::instance=1400b19d0
Archive=boost::archive::text_oarchive, T=polymorphic_derived1,
oserializer=1400b2bb8
Archive=boost::archive::text_oarchive, T=polymorphic_derived2, const
pointer_oserializer<T, Archive> pointer_oserializer<T,
Archive>::instance=1400b19f0
Archive=boost::archive::text_oarchive, T=polymorphic_derived2,
oserializer=1400b2be8
unknown location(0): fatal error in "test_main_caller( argc, argv )":
signal: memory access violation
Is this what you would expect?
Markus