You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently on Windows the CLR uses a VARIANT type to pass the object ref to the native PInvoke.
For non Windows systems it throws a TypeInitializationException.
After discussing with interop team a work is underway to either throw UnsupportedException or to properly marshal the obj ref.
The text was updated successfully, but these errors were encountered:
We throw System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal 'parameter #1': Invalid managed/unmanaged type combination (Marshaling to and from COM VARIANTs isn't supported).. I do not see anything to fix here.
Currently on Windows the CLR uses a VARIANT type to pass the object ref to the native PInvoke.
For non Windows systems it throws a TypeInitializationException.
After discussing with interop team a work is underway to either throw UnsupportedException or to properly marshal the obj ref.
The text was updated successfully, but these errors were encountered: