Click here to Skip to main content
12,881,797 members (30,855 online)
Click here to Skip to main content
Alternatives (1)
Add your own
alternative version

Tagged as

Stats

28.3K views
8 bookmarked
Posted 26 Aug 2011

Premature .NET garbage collection, or "Dude, where's my FooBar?"

, 3 Sep 2011 CPOL
A surprising and potentially destructive 'feature' of the .NET garbage collector

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

29 Aug 2011
supercat9
It would be very nice if one could ask the .NET compilers to automatically add GC.KeepAlive(this) to the end of a class' methods; IMHO, that should have been a default behavior for classes that override Finalize. Unfortunately, since that isn't possible, one should probably, as a matter of...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Phil Atkin
Founder Pixel Analytics Ltd.
United Kingdom United Kingdom
My expertise is concentrated on image processing and analysis; I've been doing it most of my working life. Now I offer consultancy through my own company, as well as developing software products.

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170422.1 | Last Updated 3 Sep 2011
Article Copyright 2011 by Phil Atkin
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid