<div dir="ltr"><div class="gmail_extra"><div class="gmail_default" style="font-family:tahoma,sans-serif">​After termintate you need to wait the thread to stop, WaitFor here the function.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
Search for WaitFor​ in<br><a href="https://sourceforge.net/p/minilib/source/ci/master/tree/socket/source/mnServers.pas">https://sourceforge.net/p/minilib/source/ci/master/tree/socket/source/mnServers.pas</a><br></div><br>
<div class="gmail_quote">On Thu, May 2, 2013 at 8:57 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>destructor TTcpIpServerSocketThread.Destroy;</div><div>begin</div><div>  FSocket.StopAccepting;</div><div>  FSocket.Free;<br></div><div>  inherited Destroy;</div><div>end;</div></blockquote></div><br><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></div>