Hi,

IMHO it will be better for you to do a copy and paste method by

drop TWScocket component to your main form, then prepare
all the required events, then copy/move the code to the TClient.

Regards
KL Chin


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Michael Preslar
Sent: Thursday, January 05, 2006 10:34 AM
To: ICS support mailing
Subject: Re: [twsocket] Client and Server at same time?


Good catch.

Now it crashes in WSocket.pas at the "end;" of procedure
TCustomWSocket.TriggerSessionAvailable(Error : Word);

KL Chin wrote:
> Hi,
>
> You code not complete. You did not create the socket.
>
>    socket := TWScoket.Create(   );
>
>
> constructor TClient.Create;
> begin
>   inherited;
>   (* This part crashes *)
>   sock
>   socket.OnDataAvailable := SocketDataAvailable;
>   socket.OnSessionClosed := SocketSessionClosed;
> end;
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to