Boost logo

Boost :

Subject: Re: [boost] [Thread] Win32 exception handling
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2008-11-26 11:21:59


"vicente.botet" wrote:
[...]
> In addition, if the program is in a broken state, it is even more
> possible that the program crashes than it throw an exception.

So do you really want to unwind the stack on program crashes (instead of
aborting at crash point) as well?

>
> My preceding question should be: Why do you associate a broken
> program state with an exception?

Because that particular exception is unexpected in the established
context.

If you believe that you still somehow must handle it then you can add
catch(...) yourself but don't insist on catch(...) and unwinding
mandatory made by the implementation (or Boost.Thread for that matter).

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk