Reputation: 35384
Let's say we have such code as below
'Call service
Set xmlhttp_ = CreateObject("MSXML2.xmlhttp")
xmlhttp_.Open "GET", url, False
xmlhttp_.send
result = (xmlhttp_.responseText)
sendRequest = result
Do we need to dispose xmlhttp_
after used?
Upvotes: 1
Views: 724
Reputation: 166341
It should be automatically disposed as soon as it goes out of scope. See Matthew Curland's response here:
Upvotes: 2