[MonoTouch] Another "Attempting to JIT compile method" Exception

Tim Scott tscott at lunaversesoftware.com
Thu Nov 26 18:52:56 EST 2009


Given this:

var propertyInfo = typeof(Foo).GetProperty("SomeNullableDateTimeProperty");
var foo = new Foo();
propertyInfo.SetValue(foo, DateTime.Now, null);

I get an exception:

System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.ExecutionEngineException: Attempting to JIT compile method
'(wrapper runtime-invoke)
<Module>:runtime_invoke_void__this___Nullable`1<DateTime>
(object,intptr,intptr,intptr)' while running with --aot-only.

Should we be able to set a nullable (DateTime or other) property via
reflection?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20091126/251184fb/attachment.html 


More information about the MonoTouch mailing list