I am trying to use ConcurrentDictionary in my monotouch app. Everything runs OK in the I am trying to use ConcurrentDictionary in my monotouch app. Everything runs OK in the simulator however when I run in an iPad I get the following exception when creating an instance of the class which uses it. Any thoughts?
System.ExecutionEngineException: Attempting to JIT compile method 'System.Collections.Concurrent.SplitOrderedList`2<string, System.Collections.Generic.KeyValuePair`2<string, object>>:.ctor (System.Collections.Generic.IEqualityComparer`1<string>)' while running with --aot-only.
at System.Collections.Concurrent.ConcurrentDictionary`2[System.String,System.Object]..ctor (IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
at System.Collections.Concurrent.ConcurrentDictionary`2[System.String,System.Object]..ctor () [0x00000] in <filename unknown>:0
This is a known issue because of how, internally, the class is using generics. You can add yourself to the bug c.c. to get notified of updates / resolution.