Re: [twsocket] TWSocketClient inheritance problem

2005-08-23 Thread Francois Piette
- Original Message - From: Snake Liquid [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, August 23, 2005 7:39 AM Subject: [twsocket] TWSocketClient inheritance problem hello, i have defined a small class for ClientClass to use with TWSocketServer wich have an event

Re: [twsocket] TWSocketClient inheritance problem

2005-08-23 Thread Wilfried Mestdagh
Hello Snake, You are typecasting the server as your clientclass instead of the client. It should be: procedure TFrmTest.ServClientConnect(Sender: TObject; Client: TWSocketClient; Error: Word); begin // TWSockClient(Sender).MyEvent := Test; // wrong TWSockClient(Client).MyEvent := Test; //