identify unrefferenced object in GC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raghulvarma
    New Member
    • Oct 2007
    • 90

    identify unrefferenced object in GC

    How to identify unrefferenced object in Garbage Collection is there any algorithm for that?
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by raghulvarma
    How to identify unrefferenced object in Garbage Collection is there any algorithm for that?
    If you have MS Visual Studio you should be able to identify all created objects in the locals and immediate windows when you step through your code.

    I do not know of any code that will print out unused or GC objects though. There may be something in IIS administrative capabilities to spot such objects.

    If you step through code to determine though you can just make sure all objects are Set Object1 = Nothing at the end of all execution (ensuring to re-dim when necessary).

    Sorry that I couldn't help more...

    Comment

    Working...