[Mono-dev] p/invoke marshal struct to pointer

Robert Jordan robertj at gmx.net
Fri Jul 17 12:11:37 EDT 2009


Gladish, Jacob wrote:
> The mono runtime seems to have a specific check for this cause and
> throws the exception. I guess what's confusing is that if it's really
> not allowed, then why would the Microsoft runtime allow it?

Maybe it allows it because the said structure is blittable in full.
Please post a test case or at least the signatures and the struct
definition, both managed and unmanaged.

Robert



More information about the Mono-devel-list mailing list