For anyone having this issue in 10.4.1. Looks like its a bug in ArcObjects. Doesn't get fixed until 10.5.1.
arcobjects - IFeatureCursor.NextFeature not releasing memory - Geographic Information Systems Stack Exchange
private static void check(IFeatureWorkspace fws) { IFeatureCursor c = fws.OpenFeatureClass("XYZ").Search(null, false); IFeature f = c.NextFeature(); m_List = null; GC.Collect(2); m_List = new List<IFeature>(); while (f != null) { m_List.Add(f); f = c.NextFeature(); } Marshal.FinalReleaseComObject(c); }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.