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@lists.boost.org] On Behalf Of Gavin Lambert Sent: Tuesday, June 21, 2016 6:19 AM To: boost-users@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users