[fpc-pascal] Re: Is THostResolver creating a thread?

Michael Van Canneyt michael at freepascal.org
Wed May 8 09:11:22 CEST 2013



On Wed, 8 May 2013, silvioprog wrote:

> Oops,
> 
> 2013/5/8 silvioprog <silvioprog at gmail.com>
>       [...]
> uses
>   resolve, winsock;
> 
> procedure TForm1.Button1Click(Sender: TObject);
> var
>   FHostEntry: PHostEnt;
> begin
>   FHostEntry := gethostbyname('www.google.com.br');
> end;
> 
> 
> ... gethostbyname('www.google.com') ...

The resolver or netdb units do not create threads by themselves.

But the windows Winsock routines may create threads (I would expect this), 
and these may show up in your process manager.

Michael.


More information about the fpc-pascal mailing list