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

[mono][aot] Emit marhsalling exception when dealing with MONO_MARSHAL_CONV_OBJECT_IUNKNOWN #105156

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

steveisok
Copy link
Member

This change prevents the aot compiler from erroring out when dealing with COM types that were not marked with MarshalAs attributes. In most scenarios that we support, we want to allow pinvokes to aot compile as in cases like anything COM interop, will end up with PNSE at runtime if you try to use it.

Fixes #104463

…_CONV_OBJECT_IUNKNOWN

This change prevents the aot compiler from erroring out when dealing with COM types that were not marked with MarshalAs attributes. In most scenarios that we support, we want to allow pinvokes to aot compile as in cases like anything COM interop, will end up erroring out if you try to use it.

Fixes dotnet#104463
@steveisok steveisok merged commit cb7817f into dotnet:main Jul 23, 2024
79 of 81 checks passed
@steveisok steveisok deleted the wasm-better-cominterop-detect branch July 23, 2024 02:17
@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[mono][wasm] DllImport with value-type args that contain unsupported marshalled fields crashes AOT compiler
4 participants