<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Maybe it use the thread again, try many requests if there is more threads?<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, May 8, 2013 at 4:35 PM, silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div class="h5">2013/5/8 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span></div></div><div class="gmail_extra"><div class="gmail_quote">
<div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


On Wed, 8 May 2013, silvioprog wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Oops,<br>
<br>
2013/5/8 silvioprog <<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>><br>
      [...]<br>
uses<br>
  resolve, winsock;<br>
<br>
procedure TForm1.Button1Click(Sender: TObject);<br>
var<br>
  FHostEntry: PHostEnt;<br>
begin<br>
  FHostEntry := gethostbyname('<a href="http://www.google.com.br" target="_blank">www.google.com.<u></u>br</a>');<br>
end;<br><br>
... gethostbyname('<a href="http://www.google.com" target="_blank">www.google.com</a>'<u></u>) ...<br>
</blockquote>
<br>
The resolver or netdb units do not create threads by themselves.<br>
<br>
But the windows Winsock routines may create threads (I would expect this), and these may show up in your process manager.<span><font color="#888888"><br>
<br>
Michael.</font></span></blockquote><div><br></div></div></div><div>But my project will always have a thread that is never released? Even when I freed my objects, that thread is still there.<br></div><div><br></div><div>Well, if this is done by the Windows API, I think we have nothing to do hehe...<br>


</div><div> </div></div><div class="im">-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div></div>
<br>_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span style="font-family:courier new,monospace">I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3<br>
<br>Best Regards<br>Zaher Dirkey</span></div>
</div>