Skip to content

AoT publish has error #163

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

Open
rprimora-pricer opened this issue Apr 7, 2025 · 1 comment
Open

AoT publish has error #163

rprimora-pricer opened this issue Apr 7, 2025 · 1 comment

Comments

@rprimora-pricer
Copy link

I get an error when publishing for AoT and Trimmed.

System.NotSupportedException: COM Interop requires ComWrapper instance registered for marshalling.
at System.Runtime.InteropServices.ComWrappers.ComObjectForInterface(IntPtr) + 0x52
at Internal.Runtime.CompilerHelpers.InteropHelpers.ConvertNativeComInterfaceToManaged(IntPtr) + 0x9
at FlashCap.Internal.NativeMethods_DirectShow.CoCreateInstance(Guid&, Object, NativeMethods_DirectShow.CLSCTX, Guid&, Object&) + 0x5c
at FlashCap.Internal.NativeMethods_DirectShow.d__48.MoveNext() + 0x42

Sources indicate this has to be taken care of in the library itself.

Has anyone had the same issue?

@yangjieshao
Copy link

I get an error when publishing for AoT and Trimmed.

System.NotSupportedException: COM Interop requires ComWrapper instance registered for marshalling. at System.Runtime.InteropServices.ComWrappers.ComObjectForInterface(IntPtr) + 0x52 at Internal.Runtime.CompilerHelpers.InteropHelpers.ConvertNativeComInterfaceToManaged(IntPtr) + 0x9 at FlashCap.Internal.NativeMethods_DirectShow.CoCreateInstance(Guid&, Object, NativeMethods_DirectShow.CLSCTX, Guid&, Object&) + 0x5c at FlashCap.Internal.NativeMethods_DirectShow.d__48.MoveNext() + 0x42

Sources indicate this has to be taken care of in the library itself.

Has anyone had the same issue?

#136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants