[Mono-dev] HandleRef regression in mono 1.2.3

Leszek Ciesielski skolima at gmail.com
Fri Feb 9 10:18:29 EST 2007


Hi,

my team has been using HandleRef for marshaling (as mono
http://www.mono-project.com/Interop_with_Native_Libraries and msdn
http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.handleref.aspx
suggest) for quite a long time. To our surprise, HandleRef no longer
works with the new release of mono.

Everything works fine with 2.0 profile. On 1.0, when I pass a
HandleRef to a native library expecting a pointer, marshaller feeds
garbage to the native code. The problem occurs both on linux and
windows. And yes, I can work around this problem by replacing
HandleRef by plain IntPtr's, but that's not the point, is it?

I was also quite surprised by this bugzilla entry:
http://bugzilla.ximian.com/show_bug.cgi?id=80515 Does this mean that
the maintainer of interop stack is aware of the regression?

Regards,

Leszek Ciesielski

-- 
MS-DOS user since 5.0
Windows user since 3.11
Linux user since kernel 2.4
Novell Netware user since 2.2
WARCRAFT user since 1.0



More information about the Mono-devel-list mailing list