Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] Checking interest in stacktrace library
From: Ernest Zaslavsky (ernest.zaslavsky_at_[hidden])
Date: 2016-06-20 23:51:38


If you're on Windows you have dbghelp Win32 functions which are no black art and quite straight forward to use.

-----Original Message-----
From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Gavin Lambert
Sent: Tuesday, June 21, 2016 6:19 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [boost] Checking interest in stacktrace library

On 19/06/2016 11:32, Leon Mlakar wrote:
> Years ago I was briefly experimenting with capturing the stack
> backtrace in the exception objet before throwing it, but couldn't make
> it work reliably on some platforms. Windows code in particular was
> very sensitive to compiler options.

If you're on Windows (and using an MS compiler), exceptions capture stack traces anyway. Extracting them is a bit more of a black art however, and as you said there are a couple of compiler options in particular that will affect the traces.

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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