-
Notifications
You must be signed in to change notification settings - Fork 498
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
Update DesktopWindowXamlSource to describe how to avoid leaks #2054
base: docs
Are you sure you want to change the base?
Conversation
@ChrisGuzak : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
thanks @ChrisGuzak! For future reference could you instead post draft PRs to https://github.com/microsoftdocs/windows-uwp-pr ? Tagging @ocalvo and @Austin-Lamb for comments on the content as well. |
windows.ui.xaml.hosting/windowsxamlmanager_initializeforcurrentthread_14911797.md
Outdated
Show resolved
Hide resolved
windows.ui.xaml.hosting/windowsxamlmanager_initializeforcurrentthread_14911797.md
Outdated
Show resolved
Hide resolved
windows.ui.xaml.hosting/windowsxamlmanager_initializeforcurrentthread_14911797.md
Show resolved
Hide resolved
windows.ui.xaml.hosting/windowsxamlmanager_initializeforcurrentthread_14911797.md
Show resolved
Hide resolved
…tthread_14911797.md Co-authored-by: Alexander Sklar <[email protected]>
@ChrisGuzak : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
…tthread_14911797.md Co-authored-by: Alexander Sklar <[email protected]>
@ChrisGuzak : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
m_xamlManager = nullptr; | ||
|
||
// Drain the message queue after releasing WindowsXamlManager since rundown is async | ||
while (PeekMessageW(&msg, nullptr, 0, 0, PM_REMOVE)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while (PeekMessageW(&msg, nullptr, 0, 0, PM_REMOVE))
// Drain the message queue after releasing WindowsXamlManager since rundown is async | ||
while (PeekMessageW(&msg, nullptr, 0, 0, PM_REMOVE)) | ||
{ | ||
::DispatchMessageW(&msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
::DispatchMessageW(&msg);
while (PeekMessageW(&msg, nullptr, 0, 0, PM_REMOVE)) | ||
{ | ||
::DispatchMessageW(&msg); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}
still need to check the details on this given the fixes that went into SV, but creating this to get early feedback.