Winsock stays in memory...how to stop?
I'm creating an instant messaging client, and in that I have a timer that frequently calls the winsock control and attempts to connect to a site, in order to test whether the user is connected to the internet. That part works fine, however, if the program gets terminated while winsock is connecting, the program stays in memory and won't close completely.
I have the following code in my form_terminate sub:
tmrOnlineCheck.enabled = false
mainWinsock.close
unload all
Set frmList = Nothing
end
But even with all that crap in the end sub, it STILL stays in memory....anyone know what I should do?