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

Properly manage teardown state in TermControl #1199

Merged
merged 2 commits into from
Jun 11, 2019

Conversation

DHowett-MSFT
Copy link
Contributor

@DHowett-MSFT DHowett-MSFT commented Jun 11, 2019

Summary of the Pull Request

This commit introduces a few automatic event revokers and implements staged Close for TermControl's constituent components. It also fixes an issue in reading the title from a tab with no focused control.

Fixes #1198, #1188.

PR Checklist

Validation Steps Performed

I've opened and closed a number of tabs at a number of speeds, I can neither get it to crash nor get it to leak console hosts and shells and a bunch of memory.

This commit introduces a few automatic event revokers and implements
staged Close for TermControl's constituent components.

Fixes #1198.
@DHowett-MSFT DHowett-MSFT added the Severity-Crash Crashes are real bad news. label Jun 11, 2019
_swapChainPanel = nullptr;
_root = nullptr;
_connection = nullptr;
Close();
Copy link
Contributor Author

@DHowett-MSFT DHowett-MSFT Jun 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I flipped this because calling the destructor manually is terrible.

@DHowett-MSFT DHowett-MSFT merged commit 6fc0978 into master Jun 11, 2019
@DHowett-MSFT DHowett-MSFT deleted the dev/duhowett/stopcrashingman branch June 11, 2019 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity-Crash Crashes are real bad news.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tab teardown crashing resulting from renewed renderer destruction order issues
4 participants