[Mono-list] Support for Marshal.PtrToStructure in mono?

Jonathan Pryor jonpryor@vt.edu
Thu, 23 Dec 2004 06:59:44 -0500


On Thu, 2004-12-23 at 10:09 +0000, Kala B wrote:
> Does mono provide support for  Marshal.PtrToStructure?

Yes, and No. :-)

Yes, Marshal.PtrToStructure is supported, but apparently it's not
*fully* supported.  I imagine the nested pointer to an array of structs
isn't implemented by mono's marshaller.

Could you create a small test case and add it to bugzilla.ximian.com?
The bug should be added to "Mono: Runtime".

Also, which version of Mono are you using?  It's possible that Mono
1.1.3 (the development branch) has fixed this problem; it might be worth
testing your program under it.

Thanks,
 - Jon