Hello all,

I have a VB6 application that sends emails through a winsock.

But sometimes while sending an email, an error occurs.
And then when I exit the aplication, the program unloads all forms but the application is still running. I have to double click in the stop button on VB or control + alt+ delete and kill the process.

What I want was to kill the process through the application

I thougt of something like this : ws.close

But this doesn't work...

I hope somebody can help me