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

Hwnd not marshalled correctly for x86 #888

Closed
angelazhangmsft opened this issue Jun 18, 2021 · 1 comment
Closed

Hwnd not marshalled correctly for x86 #888

angelazhangmsft opened this issue Jun 18, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@angelazhangmsft
Copy link
Contributor

Describe the bug

The new COM interop APIs result in this exception when running on x86 and with passing hwnd as a parameter:

An unhandled exception of type 'System.AccessViolationException' occurred in Microsoft.Windows.SDK.NET.dll
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

To Reproduce

var hwnd = WinRT.Interop.WindowNative.GetWindowHandle(this);
await Windows.Security.Credentials.UI.UserConsentVerifierInterop.RequestVerificationForWindowAsync(hwnd, "Test Message");

Expected behavior

No exception

Version Info

Microsoft.Windows.SDK.NET.dll 10.0.*.18

@angelazhangmsft angelazhangmsft added the bug Something isn't working label Jun 18, 2021
@angelazhangmsft angelazhangmsft added this to the Release 1.3.1 milestone Jun 18, 2021
@angelazhangmsft
Copy link
Contributor Author

duplicate of #885

@angelazhangmsft angelazhangmsft removed this from the Release 1.3.1 milestone Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants