Garbage Collecting

tehon3299

Well-known member
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
I am wondering when .NET does garbage collecting? I have heard that it is different than VB6. Does it do it whenever it feels it is needed?
 
.NET garbage collection works similar to Javas. When there is no reference to a location in memory (in other words, nothing pointing to an object), it will free that memory up for later use.. but it will only do this when memory is actually needed for the application.

So.. basically you dont have to worry about destroying objects as you did in VB6. .NET will handle it, and far more efficiently then you could do yourself through trying to program a garbage collection.
 
Back
Top