Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::thread t(foo); //foo is just a function that prints a message
- try
- {
- //std::this_thread::sleep_for(std::chrono::seconds(1));
- throw std::exception();
- }
- catch (const std::exception& e)
- {
- std::cout << ".join after exception !n";
- t.join();
- }
- std::cout << ".join in main() !n";
- //t.join()
- ---------------------------
- Microsoft Visual C++ Runtime Library
- ---------------------------
- Debug Error!
- Program: ...al studio 2013ProjectsCPP_nonexceptDebugCPP_nonexcept.exe
- R6010
- - abort() has been called
- try
- {
- throw std::exception();
- }
- catch (const std::exception& e)
- {
- ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement