O'Reilly logo

Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition by David Sceppa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cleaning Up After Yourself

Most developers know that the .NET Framework performs garbage collection, but many developers are unaware of how or when the garbage-collection process occurs. Although this text will not try to provide an in-depth explanation of the inner workings of garbage collection in .NET, it’s important to understand that garbage collection is not performed immediately and how its timing can affect the behavior of your application.

Many .NET developers have experience with Visual Basic 6.0 and prior versions and know that those versions provide aggressive garbage collection. With these "classic" versions of Visual Basic, objects are cleaned up as soon as they fall out of scope or are released by setting the object variable to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required