Skip to content
New issue

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

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

Already on GitHub? # to your account

Update DesktopWindowXamlSource to describe how to avoid leaks #2054

Draft
wants to merge 7 commits into
base: docs
Choose a base branch
from

Conversation

ChrisGuzak
Copy link
Contributor

still need to check the details on this given the fixes that went into SV, but creating this to get early feedback.

@PRMerger7 PRMerger7 added the do-not-merge PR is being processed and awaiting review/approval. label Aug 6, 2021
@PRMerger10 PRMerger10 requested a review from jwmsft August 6, 2021 19:41
@PRMerger10
Copy link

@ChrisGuzak : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@PRMerger10 PRMerger10 added uwp/prod Topic product is UWP-related. winrt-reference/tech Topic technology is WinRT-related. Change sent to author Topic owner notified of update to issue. labels Aug 6, 2021
@asklar
Copy link
Contributor

asklar commented Aug 9, 2021

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.

@ktoliver ktoliver added the aq-pr-triaged Tracking label for the PR review team. label Aug 9, 2021
…tthread_14911797.md

Co-authored-by: Alexander Sklar <asklar@microsoft.com>
@PRMerger18
Copy link

@ChrisGuzak : Thanks for your contribution! The author(s) have been notified to review your proposed change.

…tthread_14911797.md

Co-authored-by: Alexander Sklar <asklar@microsoft.com>
@PRMerger8
Copy link

@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))

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);

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);
}

Choose a reason for hiding this comment

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

}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
aq-pr-triaged Tracking label for the PR review team. Change sent to author Topic owner notified of update to issue. do-not-merge PR is being processed and awaiting review/approval. uwp/prod Topic product is UWP-related. winrt-reference/tech Topic technology is WinRT-related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants