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...