No, I create the instance in the thread constructor.
Must I create instance in Execute method or deplace listening method in
constructor ? 

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la
part de Arno Garrels
Envoyé : mercredi 4 avril 2007 11:39
À : ICS support mailing
Objet : Re: [twsocket] Listen exception

Engi wrote:
> ICS v5.25
> 
> Another info : Listening is launched in a thread Execute() method.

Then this error most likely has do to with incorrect use of the
components in worker thread(s).    
Do you create the instance of TWSocketServer in Execute() or do you call
ThreadDetach/ThreadAttach as demonstrated in ThrdSrv demo?

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

> 
> 
>   -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> De la
> part de Arno Garrels
> Envoyé : mercredi 4 avril 2007 10:44
> À : ICS support mailing
> Objet : Re: [twsocket] Listen exception
> 
> Engi wrote:
>> I'm working under XP pro SP2.
>> I don't know the ICS release. How can I find it ?
> 
> Do you find these lines in (OverbyteIcs)WSocket.pas at the bottom of 
> procedure TCustomWSocket.Listen?
> 
>     { FP:26/09/06 Are FD_READ and FD_WRITE really necessary ?
> Probably not ! 
> }
>     { Lodewijk Ellen reported a problem with W2K3SP1 triggering an AV 
> in }
>     { accept. Keeping only FD_ACCEPT and FD_CLOSE solved the problem.
> }
>     { Anyway, a listening socket doesn't send nor receive any data so 
> those }
>     { notification are useless.
> }
>     FSelectEvent := FD_ACCEPT or FD_CLOSE;
>     if FType <> SOCK_STREAM then
>         FSelectEvent := FSelectEvent or FD_READ or FD_WRITE;
>     iStatus      := WSocket_Synchronized_WSAASyncSelect(FHSocket,
> Handle,
>                                                        
> FMsg_WM_ASYNCSELECT, 
>                                                         FSelectEvent);
> 
> 
>> 
>> -----Message d'origine-----
>> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> De la
>> part de Arno Garrels
>> Envoyé : mardi 3 avril 2007 18:11
>> À : ICS support mailing
>> Objet : Re: [twsocket] Listen exception
>> 
>> Engi wrote:
>>> Hi,
>>> 
>>> Sometimes, when I launch listening for TWSocketServer component, I 
>>> obtain an exception with message :
>>> Error 10022 in function WSAASyncSelect - Invalid argument.
>> 
>> Strange, is this in W2K3?
>> Are you working with latest ICS-release?
>> 
>> --
>> Arno Garrels [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> 
>>> 
>>> What could be the problem ?
>>> 
>>> TIA,
>>> Engi
>> --
>> 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
--
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