Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Flygger19815y@beegC0de it's literally discussed (and thus answered) in the section following the first subheading:
"In a garbage collected environment, the term memory leaks is a bit counter intuitive. How can my memory leak when there’s garbage collector (GC) that takes care to collect everything?" -
Depends on how you think of a memory leak. You can't not have 0 references to an allocation in a gc'd memory model and have it skipped by the GC unless the language has unmanaged memory allocations, so technically you can't leak memory. References held for a long time by GC aren't leaked, but it will seem like they never get garbage collected because something static is holding a reference.
Related Rants
I was recently reading about memory leaks and profiling and found a really excellent article for people new to c# or best practices. It's a great article and well worth the read if you're still learning.
https://michaelscodingspot.com/find...
random
learning
profiling
c#
best practices
memory leaks