We are having some memory leak issues and I believe that it is related to our pages throwing an error and redirecting to the custom error page displayed to visitors.
In global.asa or web.config, how can we set it so that if a page throws an error, all open objects on that page are closed, destroyed, and variables nulled to recover that memory?