|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-12-08 09:56:18
Alexey Nikitin wrote:
> Hi,
>
> Sample from "test_array.cpp":
> --- line 55 ---
> // test array of objects
> A a_array[10];
> {
> test_ostream os(testfile, TEST_STREAM_FLAGS);
> test_oarchive oa(os);
> oa << boost::serialization::make_nvp("a_array", a_array);
> }
> --- line 61 ---
>
> At exit from block happens access violation, because os tries to use
> codecvt object deleted in oa destructor.
I think this is a deeper problem than "os.close()" missing in tests. I'd say
that if archive changes locale, it probably should switch it back in dtor.
Robert, what do you think?
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk