i&#039;m trying to tidy up a database on the session_onend event by creating a new webclass object (dll in vb) which then calls a public sub that does all the sql, etc.<BR>when i do all this outside of the session_onend procedure and on an asp page for example there is no problem but in global.asa, i am receiving an &#039;object variable or with block variable not set&#039; error when i try to call my public sub. Any ideas?