In my project, I use many generic classes, most of them nested, like
this: List<KeyValuePair<List<T1>, List<T2>>. When i create too many
instances of these generic classes (with different type parameters), i
get the exception:

Unhandled exception of type System.ExecutionEngineException:
Attempting to JIT compile method
'System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<string,
System.Collections.Generic.List`1<string>>>:.ctor ()' while running
with --aot-only.

This only happens when running on iPhone device, on the Simulator
everything is fine.
Is there a parameter for aot compilation that can affect the maximum
number of generic instances? (I already use
-aot="nimt-trampolines=2048")
I'm quite sure this is not a problem with my code, as depending on the
order of creating new instances, the exception is thrown in different
places, for different types.

Regards,
James
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to