Is there a way to find out any unclosed objects and close them at the end of the script?<BR><BR>For example, I need a function something like this -<BR><BR>Function CloseAll()<BR><BR> For Each lobjObj in objects_Opened_in_the_Page<BR> Set lobjObj = Nothing<BR> Next<BR><BR>End Function<BR><BR>A function something like this will be very useful, b&#039;cos there will be some unclosed objects wandering around.<BR><BR>Also, in case of errors, objects will not be closed and I would like to show the error page after all the objects have been properly closed.<BR><BR>If I have a function like this, we can call it in all the pages and stop worrying about memory leaks.<BR><BR>Any help greatly appreciated.<BR><BR>Thanks,<BR>-Gusappa<BR><BR><BR><BR><BR><BR><BR>