-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
NativeAOT can't marshal SAFEARRAY #41
Comments
Hi @RERASER, thank you for reporting this bug! It seems to have been around for quite some time. Apparently, the Fortunately, the fix should be relatively straightforward. I expect to be able to provide a solution later today. |
Version 6.9.0 should resolve this issue. Please let us know if it works as expected. |
@RERASER Works? |
Sorry for the late response. It works. Thanks for your work again. |
When I tested my code with NativeAOT, it threw an exception saying, 'Method '[WmiLight]WmiLight.NativeMethods.GetNames(native int, string[]&)' requires marshalling that is not yet supported by this compiler.'
We need to manually marshal the SAFEARRAY to the native method.
The text was updated successfully, but these errors were encountered: