Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Jan : Preventing the activation of the IdAntiFreeze mechanism

www.cryer.info
Managed Newsgroup Archive

Preventing the activation of the IdAntiFreeze mechanism

Subject:Preventing the activation of the IdAntiFreeze mechanism
Posted by:"Offir Bakshitz" (nospam)
Date:Wed, 26 Jan 2005 11:49:21

Hi all,
While debugging my application i noticed that every call to
TIdTCPClient.Connect() yields the creation of a new thread.
After Furthur study I realized that Indy has a mechanism that processes all
messages to prevent the main thread from blocking while the application
calls connect() from the main thread.
Since my application creates a thread in which conenct() is called, If feel
I do not need the extra "anti-freeze" thread.
What is the right way to prevent indy from creating this anti-freeze thread?
Is it indeed true that if I call TIdTCPClient.Connect() from a worker-thread
I do not need the extra antifreeze thread?
Thanks.
Offir.

Replies:

www.cryer.info
Managed Newsgroup Archive