|
Boost Users : |
Subject: Re: [Boost-users] [Thread] program crashes from time to time when deleting unique_future<void>
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2011-11-22 14:16:12
On Tue, Nov 22, 2011 at 9:01 AM, Soderback, Johan
<Johan.Soderback_at_[hidden]> wrote:
> Thanx Alex,
>
> It works but not when I have the boost::current_exception_diagnostic_information() call
> in the throwf() as in my example.
>
> void throwf()
> {
> try
> {
> BOOST_THROW_EXCEPTION(TheException());
> }
> catch (...)
> {
> boost::current_exception_diagnostic_information();
> boost::rethrow_exception( boost::current_exception() ); // or just throw;
> }
> }
>
> The plain throw version seems to work as well without it, the call certainly triggers something.
> Anyway, any idea what could be wrong?
>
> /Johan
Seems suspicious, probably a bug in boost::exception_ptr. I'll look
into it as time permits.
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
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