Hello Michael,

I dont see in your example that you assign an event handler to
OnSessionAvaialble, so I dont think TriggerSessionAvailable will cause
an exception. But what is exacly the error ?

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Thursday, January 5, 2006, 03:33, Michael Preslar wrote:

> 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

Reply via email to