I am getting a crash upon CommitTransaction on an InMemoryFeatureLayer. I am adding 34 features to the layer one after the other and receive this crash on the same five records each time I attempt to add them. Odd thing is that even though the CommitTransaction crashes these five records are still in the layer even though a Rollback Transaction is invoked.
The keys of all 34 records are unique, but they are being added out of sort sequence.
These crashes only occur when running in non-debug mode. Running in VS2010 debug they do not occur.
Below is the .NET error.
Any ideas on what the cause of this might be? I have debugged for several days now and cannot find any issues with my code per se.
Any words of advice are appreciated.
Regards,
Dennis
Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. x: 'GisSharpBlog.NetTopologySuite.Index.Strtree.STRtree+AnonymousAbstractNodeImpl', x's type: 'AnonymousAbstractNodeImpl', IComparer: 'GisSharpBlog.NetTopologySuite.Index.Strtree.STRtree+AnonymousYComparerImpl'.