Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Objects reference

This is a discussion on Objects reference within the Microsoft .NET forums, part of the Programming Talk category; Does the objects get destroyed immediately when the last reference goes away?...

  1. #1
    lokeshm is offline Member Array
    Join Date
    Apr 2005
    Answers
    83

    Objects reference

    Does the objects get destroyed immediately when the last reference goes away?


  2. #2
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    No the object does not get destroyed immediately when the last reference goes away. The reason is because the garbage collector could not exactly predict and guarantee the time when an object will be destroyed and for reclaiming the memory.


Latest Article

Network Security Risk Assessment and Measurement

Read More...