![]() ![]() So maybe all unhandled exceptions are registered somewhere by system through some imaginary function like std::set_unhandled_exception_ptr(exc). Also I can print stack to console through Boost.StackTrace.īut besides stack trace is it possible anyhow to get some information about thrown exception? For example there exist std::exception_ptr, which can carry any exception information. My question is whether it is possible anyhow to get some information about unhandled exceptions before program dies?įor example I can set my callback through std::set_terminate(). I expect that it terminates it through calling std::terminate(). And it is not that easy to handle exceptions in all the threads.Įach unhandled exception terminates program immediately. But programs may have hundreds of different threads. If it is main thread of course it is easy to create try catch in main(). Some C++ programs may not handle all of the exceptions. Arty Asks: Getting info about unhandled C++ exception
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |