Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Indy SSL error

www.cryer.info
Managed Newsgroup Archive

Re: Indy SSL error

Subject:Re: Indy SSL error
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 11 May 2006 02:08:08

"Koger" <ingen@mail.dk> wrote in message
news:xn0em3itj1fq9vt000@newsgroups.borland.com...

> Huh? The threads destructor terminates the thread

Not in a safe manner, it doesn't.  Letting TThread's destructor terminate
and wait on the thread instance has all sorts of problems.  Go to
http://www.deja.com to read about them in the newsgroup archives.  You
should always terminate your threads yourself before freeing them.  Besides,
if you look at the code I gave you, you need control over the thread's
termination anyway so that you can disconnect the socket to make Connect()
abort immediately.

> > In order to make the Connect() exit as soon as possible, you have
> > to disconnect the socket from another thread (the main thread in
> > your example) so that Connect() aborts in the worker thread.
>
> But I think that's what I do.

No, you are not doing that at all.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive