AnsweredAssumed Answered

IFeatureCursor.NextFeature not releasing memory

Question asked by efigio2 on Aug 12, 2010
Latest reply on Oct 4, 2017 by dvela
I've got a non recycling cursor retrieving features into a `List<IFeature>`. 

When I populate the list, I can see my memory usage climbing up.  When I discard my list (or it goes out of scope), the memory doesn't go down again, even when explicitly calling the garbage collector. 

I've tried looping through the list and calling ReleaseComObject on each IFeature, also to no avail. 

This is an issue, as my app does this whenever a given user action is performed, and the memory usage just keeps climbing, till there's no memory left on the machine and it crashes.

This is driving me nuts.  Any ideas?

Outcomes