I am trying to understand how objects are created in a .Net world as oppose to that in an unmanaged code environment (VB6 etc)
From what I understand, when an object is created in lets say C# by using the new keyowrd, the reference variable is placed in the managed heap until the garbage collector takes a proactive measure to check if the object still have references to it. If not, it is destroyed. Does this mean the GC is always running? Isnt this an expensive process?
Can someone explain better?
How does this differ in an umnanaged code environemnt?