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
While implementing an SDK from a third party vendor (which is a C# wrapper to a native C dll), we stumbled upon some issues with Marshal.PtrToStructure() and StructureToPtr() which are throwing exceptions.
The exceptions go as "marshalling from this type is currently not supported".
The type goes like this:
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal sealed class SomeClass
{
public object SomeField { get; private set; }
public SomeClass(object someField )
{
SomeField = someField ;
}
}
The context is in regard to marshalling this type to IntPtr back and forth.
Given the nature of the exception, I am assuming that it is known and scheduled to be implemented at some point. If so, please do feel free to consider this as a non-issue.
On our end we've been able to workaround this with the vendor by reworking the wrapper to work differently on marshalling these data.
Cheers!
The text was updated successfully, but these errors were encountered:
Hello there,
While implementing an SDK from a third party vendor (which is a C# wrapper to a native C dll), we stumbled upon some issues with
Marshal.PtrToStructure()
andStructureToPtr()
which are throwing exceptions.The exceptions go as "marshalling from this type is currently not supported".
The type goes like this:
The context is in regard to marshalling this type to
IntPtr
back and forth.Given the nature of the exception, I am assuming that it is known and scheduled to be implemented at some point. If so, please do feel free to consider this as a non-issue.
On our end we've been able to workaround this with the vendor by reworking the wrapper to work differently on marshalling these data.
Cheers!
The text was updated successfully, but these errors were encountered: