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" <[EMAIL PROTECTED]> To: "Mono List" <[email protected]> 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 - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
