-----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Alexander Bauer Gesendet: Sonntag, 18. November 2007 13:29 An: Ararat Synapse Betreff: Re: [Synalist] Detect Bind Port Failure
Perhaps you should try this one: ------------------------------------------------------- Constructor TTCPHttpDaemon.Create(I, P: String); Begin fSock := TTCPBlockSocket.Create; fIP := I; fPort := P; Inherited Create(False); End; ------------------------------------------------------- In the other case the thread will execute before fSock is created. I've not tested this. It's only a guess. Alex ---------------------------------------------- I think this is not a good idea, the inherited create should always come first. But why not do an 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. Regards Thomas ------------------------------------------------------------------------- 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 synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public