[Mono-list] Bug in the interpreter: pinvoke
Adam Treat
manybooby@yahoo.com
Sat, 9 Feb 2002 11:56:44 -0800
I've come across a bug in the interpreter when using DllImport. You can not
pass two strings as arguments to a DllImport statement. If you do it balks
and throws a 'NullReference null was found where object was required'
exception. The jit works fine with this. This was found running on linux.
Example:
[DllImport("libsomelib.so", EntryPoint="someentrypoint")]
public static extern int new_Test(string test1, string test2;
public static void new_Test(string test1, string test2) {
}
I know the interpreter and jit share code for PInvoke, so don't know exactly
what's happening.