Yes, this is the better solution.

Thomas Kerkmann schrieb:

> 
> Constructor TTCPHttpDaemon.Create(I, P: String); 
> Begin  
>    Inherited Create(true); // <<<<< create suspended
> 
>    fSock  := TTCPBlockSocket.Create;
>    fIP    := I;
>    fPort  := P;
>    Resume; // <<<<<<<<<<< let it run
> end;
> 
> so the thread will not execute before everything is initialized.
> 


Alex

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to