$rs->Close(); Giving an error message where ever I put it.

What is the proper place to use this Close command? I’m trying to avoid memory leaks, and I see it being used in the app_Loing.onValidateSuccess event. But in my other events where I used sc_lookup(rs I cannot put $rs->Close(); at the end of the event just to clean up memory. The page just crashes with "Fatal error: Call to a member function Close() on array in "

Maybe I shouldn’t worry about closing my dynamically created rs arrays?

PHP does have functions to close and destroy objects, but in general they are not used often because php has it’s own garbage collection. That doesn’t mean that you will not need them sometimes as you might want to do some programmatical stuff upon destroy. But in your case I think you shouldn’t bother.