-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgumentException with example code #2
Comments
Thank you for testing! and we needs [assembly: MasterMemoryHint(typeof(Person), typeof(int), typeof(KeyTuple<Gender, int>))] sorry, I need to write more document. |
To be honest I am not sure what I should generate. I am testing for Windows platform so I should not be affected by IL2CPP issue, right? It is a pleasure to test your stuff :) |
I need to make three pattern
However, due to share of the code, now Unity is only IL2CPP (ZeroFormatter is also the same reason). |
Hi,
I just created fresh project in Unity 5.5, with empty GO and MB attached (in zip). This results in exception:
ArgumentException: does not implement right interface
System.Collections.Generic.Comparer
1+DefaultComparer[ZeroFormatter.KeyTuple
2[Gender,System.Int32]].Compare (KeyTuple2 x, KeyTuple
2 y) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:771)System.Array.compare[KeyTuple
2] (KeyTuple
2 value1, KeyTuple2 value2, IComparer
1 comparer) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:319)System.Array.qsort[KeyTuple
2,Person] (ZeroFormatter.KeyTuple
2[] keys, .Person[] items, Int32 low0, Int32 high0, IComparer1 comparer) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:619) System.Array.Sort[KeyTuple
2,Person] (ZeroFormatter.KeyTuple2[] keys, .Person[] items, Int32 index, Int32 length, IComparer
1 comparer) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:303)Rethrow as InvalidOperationException: The comparer threw an exception.
System.Array.Sort[KeyTuple
2,Person] (ZeroFormatter.KeyTuple
2[] keys, .Person[] items, Int32 index, Int32 length, IComparer1 comparer) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:303) MasterMemory.Memory
2[ZeroFormatter.KeyTuple2[Gender,System.Int32],Person].FastSort (IEnumerable
1 datasource, System.Func2 indexSelector, IComparer
1 comparer) (at Assets/MasterMemory/Memory.cs:360)MasterMemory.Memory
2[ZeroFormatter.KeyTuple
2[Gender,System.Int32],Person]..ctor (IEnumerable1 datasource, System.Func
2 indexSelector, Boolean rootMemory) (at Assets/MasterMemory/Memory.cs:87)MasterMemory.Memory
2[ZeroFormatter.KeyTuple
2[Gender,System.Int32],Person]..ctor (IEnumerable1 datasource, System.Func
2 indexSelector) (at Assets/MasterMemory/Memory.cs:77)MemoryTesting.Start () (at Assets/MemoryTesting.cs:71)
I am using unitypackage from releases for MasterMemory (0.1.0) and binary (dll) releases for ZeroFormatter (1.6.0)
MemoryTesting.zip
The text was updated successfully, but these errors were encountered: