[Mono-list] Is PInvoke meant to work with mcs-1.2 ?

Miguel de Icaza miguel at novell.com
Wed Apr 18 19:53:07 EDT 2007


Hello,

> Thanks for info. I don't understand how HandleRef was not supported
> before. It has worked fine since we started using it in SWIG around
> version 0.9. With Ubuntu Feisty distributing this version of Mono from
> tomorrow, it means plenty of broken Mono code and no release since 1.2.3
> to fix it. Oh well.

It worked by accident.   

You were merely lucky that the stars and memory values in memory
happened to work for you.   The runtime support to have it work was
never there, so chances were that you would be getting corrupt data.

It was only recently that it became more noticeable.

Miguel.
> William
> 
> Kornél Pál wrote:
> > HandleRef requires runtime support it don't depends on the compiler so
> > make sure you are using a runtime version that implements HandleRef
> > support (you may have to use source code from SVN).
> > 
> > Some information on HandleRef support:
> > http://bugzilla.ximian.com/show_bug.cgi?id=80786
> > 
> > Kornél
> > 
> > ----- Original Message ----- From: "William S Fulton"
> > <wsf at fultondesigns.co.uk>
> > To: "Mono List" <mono-list at lists.ximian.com>
> > Sent: Wednesday, April 18, 2007 4:58 PM
> > Subject: [Mono-list] Is PInvoke meant to work with mcs-1.2 ?
> > 
> > 
> >> Sounds like a daft question, but the most basic of PInvoke wrappers
> >> gives an exception when using mcs-1.2.3.1 on Ubuntu Dapper Drake and
> >> I've also heard the same for Ubuntu Feisty. The code will execute okay
> >> when compiling instead with gmcs-1.2.3.1. Looks like when a HandleRef is
> >> used a System.ArgumentNullException is thrown even when the Handle is
> >> non-null. Is this a known problem?
> >>
> >> Some bug reports with more details, but I can narrow the problem down
> >> and post soon...
> >>
> >> XAPIAN:
> >> http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=132
> >>
> >> SWIG:
> >> https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1702565&group_id=1645
> >>
> >>
> >> William
> >> _______________________________________________
> >> Mono-list maillist  -  Mono-list at lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-list 
> > 
> > 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list