Hi,
My server admin warned me about the server resources due to the high traffic. Two main thing, DLLHOST.EXE and INETINFO.EXE are the main resource eaters. He asked me to double check the site if there is any open objects that are not closed properly.
I do like this in my code, would it work:
function blah(etc)
set obj = server.createobject("someobj"
if etc something then
blah = this
else
blah = that
end if
set obj = nothing
end function
I return the function value, then set obj = nothing. I'm only 99% sure it works.
Another thing is, what if an error accured while an object is open. Would it be closed automatically by the system, or do I have to trap the error, and close everything if an error occur?
Thanks in advance.
My server admin warned me about the server resources due to the high traffic. Two main thing, DLLHOST.EXE and INETINFO.EXE are the main resource eaters. He asked me to double check the site if there is any open objects that are not closed properly.
I do like this in my code, would it work:
function blah(etc)
set obj = server.createobject("someobj"
if etc something then
blah = this
else
blah = that
end if
set obj = nothing
end function
I return the function value, then set obj = nothing. I'm only 99% sure it works.
Another thing is, what if an error accured while an object is open. Would it be closed automatically by the system, or do I have to trap the error, and close everything if an error occur?
Thanks in advance.