[killfill@delly /usr/ports/lang/mono/work/mono-1.2.2/mono/tests]$ mono pinvoke3.exe Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: A null value was found where an object instance was required. at (wrapper native-to-managed) Tests:delegate_test_struct (Tests/SmallStruct1) at <0x00000> at (wrapper managed-to-native) Tests:mono_test_marshal_small_struct_delegate (Tests/SmallStructDelegate1) at Tests.test_0_marshal_small_struct_delegate1 () [0x00000] at <0x00000> at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[]) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at TestDriver.RunTests (System.Type type, System.String[] args) [0x00000] at TestDriver.RunTests (System.Type type) [0x00000] at Tests.Main () [0x00000]