[twsocket] how to legally close and free client

2011-07-21 Thread Lukas Skala
hello, I have server application based on TWSocketServer, clients are derived from TWSocketClient class. I need disconnect inactive clients. I'm not sure how to disconnect client, I'm using this: procedure DisconnectMyClient(i: Integer); var C: TTcpSrvClient; {TTcpSrvClient =

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Arno Garrels
Lukas Skala wrote: hello, I have server application based on TWSocketServer, clients are derived from TWSocketClient class. I need disconnect inactive clients. I'm not sure how to disconnect client, I'm using this: procedure DisconnectMyClient(i: Integer); var C: TTcpSrvClient;

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Lukas Skala
hello, thank for quick and useful response. i'll try to upgrade to V7 now because i'm still getting error (catched by Server.OnBgException event), I'm getting AccessViolation or InvalidOperation exceptions. These errors occurs after disconnecting client by server (i'm using timer - in same way

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Arno Garrels
Lukas Skala wrote: hello, thank for quick and useful response. i'll try to upgrade to V7 now because i'm still getting error (catched by Server.OnBgException event), I'm getting AccessViolation or InvalidOperation exceptions. Sounds like you are accessing pointers or objects when they have

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Wilfried Mestdagh
-Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens Lukas Skala Verzonden: donderdag 21 juli 2011 20:23 Aan: twsocket@elists.org Onderwerp: Re: [twsocket] how to legally close and free client hello, thank for quick and useful response. i'll