Search
-
IList<T> Custom Collections
Discussion by Ken Alexander · · Home› Discontinued and Previous Versions› ANTS Memory Profiler Previous VersionsWhen using IList<T> for a custom collection. It appears that the underlying array is left in memory after the collection has been GC'd. It says 1 live instance of a size of 16 bytes. I don't understand why it is left in memory. Any ideas would be appreciated. Thanks, Ken -
Re: IList<T> Custom Collections
Comment by Andrew H · · Home› Discontinued and Previous Versions› ANTS Memory Profiler Previous VersionsIt took me a little while to work this one out :) It's odd, but you're not seeing something that indicates a memory leak here, I think. System.Generic.List contains a static reference to an empty array, so that it can represent 0 item lists more effectively: that's the array that you're seeing after you click the button.…
2 results