Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when main exits before any key is pressed #3

Open
arpit-saxena opened this issue Mar 20, 2017 · 1 comment
Open

Error when main exits before any key is pressed #3

arpit-saxena opened this issue Mar 20, 2017 · 1 comment

Comments

@arpit-saxena
Copy link
Member

When main exits (after printing all the numbers), the other thread will be destroyed which throws an error

terminate called without an active exception
Aborted (core dumped)
@arpit-saxena
Copy link
Member Author

Detaching the thread makes the error disappear but the thread is not killed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant