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

[release/8.0] Fix WM_DESTROY message handling in ActiveX control #12658

Open
wants to merge 2 commits into
base: release/8.0
Choose a base branch
from

Conversation

Epica3055
Copy link
Member

@Epica3055 Epica3055 commented Dec 19, 2024

BackPort PR #12564 And #12648 To 8.0
Fixes #12551

Customer Impact

Parent container control is not sending WM_DESTROY message to the child control while disposing the ActiveX child controls. ActixeX child expects a WM_DESTORY message, but the message handler is never called.

Regression

Yes. Due to Move from IntPtr to nint to avoid runtime casting errors. (#5791) · dotnet/winforms@834d0a0, We accidentally removed caching of a window handle before destroying it, once the handle was destroyed, we were not able to forward message to its winproc.

Testing

Manual testing with the user-provided project

Risk

Low - The change reverts logic to .NET7 state, no workaround is possible

@Syareel-Sukeri
Copy link
Contributor

Syareel-Sukeri commented Dec 20, 2024

Verified the issue on latest .NET SDK 8.0.11 + private dlls built from Epica3055:BackPortPR12564And12648To8.0 branch, the issue has been fixed and no new regression issue found. Test result is like below.

image

@Tanya-Solyanik Tanya-Solyanik marked this pull request as ready for review December 21, 2024 00:05
@Tanya-Solyanik Tanya-Solyanik requested a review from a team as a code owner December 21, 2024 00:05
@Tanya-Solyanik Tanya-Solyanik added 🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) and removed draft draft PR labels Dec 21, 2024
@Tanya-Solyanik Tanya-Solyanik added the Servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria label Dec 21, 2024
@Tanya-Solyanik Tanya-Solyanik changed the title BackPort PR 12564 And 12648 To 8.0 [release/8.0] Fix WM_DESTROY message handling in ActiveX control Dec 21, 2024
@Sachin-NI
Copy link
Contributor

@Tanya-Solyanik , Validated the changes in this PR. Our projects are working correctly with these changes. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) Servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants