Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: TIdSMTP raises Thread creation error, help!!!
| Subject: | Re: TIdSMTP raises Thread creation error, help!!! |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 31 Jan 2007 11:11:00 |
"David" <focusme@yeah.net> wrote in message
news:45c06bf3@newsgroups.borland.com...
> The TIdSMTP is created in the thread, and after email send
> completed, the TIdSMTP will be freed, and will be created again
> if a new email will be sent. In this case, can I add a TIdAntiFreeze
in it?
No. TIdAntiFreeze does not do anything when used outside of the main
thread. Its sole purpose is to keep the main message queue running
during blocking socket operations. So it is meaningless to use
TIdAntiFreeze in a worker thread.
Gambit
none