[MonoTouch] Another "Attempting to JIT compile method" Exception
Miguel de Icaza
miguel at novell.com
Sat Nov 28 13:39:46 EST 2009
Hello Tim,
> 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)
The reason for this is that the static compiler did not have
visibility into the class that you are trying to invoke, in this case,
it is the trampoline code that allows the SetValue to work.
I'll discuss with the team if this can be statically inferred, but it
does seem difficult, as the information could be anything.
Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20091128/d722ee3c/attachment.html
More information about the MonoTouch
mailing list