Hello Arno Garrels, thank you for your prompt answer. The exception 'WSAAsyncSelect 10022 Invalid Argument' is fired at the line below:
procedure TCustomWSocket.Connect; ... FSelectEvent := FD_READ or FD_WRITE or FD_CLOSE or FD_ACCEPT or FD_CONNECT; iStatus := WSocket_Synchronized_WSAASyncSelect(FHSocket,Handle,WM_ASYNCSELECT, FSelectEvent); ------------------------------------------------------ ==>> The return value of iStatus is -1 and so => Exit ------------------------------------------------------ if iStatus <> 0 then begin SocketError('WSAAsyncSelect'); Exit; end; ... There is no effect removing 'FD_ACCEPT' at line: FSelectEvent:=FD_READ or FD_WRITE or FD_CLOSE or FD_ACCEPT or FD_CONNECT; Thanks and Regards Hans -------- Original-Nachricht -------- > Datum: Wed, 5 Dec 2007 15:39:23 +0100 > Von: "Arno Garrels" <[EMAIL PROTECTED]> > An: "ICS support mailing" <twsocket@elists.org> > Betreff: Re: [twsocket] Winsock-Error \'Invalid Parameter\' (10022) under > Win98 > [EMAIL PROTECTED] wrote: > > Hello > > > > I'm using the ICS and Delphi 4 to test the mail-send demo on an > > system with Win98SE. When attempting to connect to the mailserver it > > throws the winsock error 'Invalid Parameter' (10022). Causing this > > the version of the winsock-dll? Installed: ws2_32.dll / 4.10.2222 > > > > On an XP-system it works fine. > > > > Any ideas to solve that problem ? (Not changing the System ;-)) > > Try to set a breakpoint in WSocket.pas, > procedure TCustomWSocket.Connect and single step thru the code. > Then please post the line where the exception is fired. > > BTW: What happens if you remove FD_ACCEPT from FSelectEvent below? > I'm sure this has been removed some months before but now it's back > in my V6-version again, is it a regression? > > FSelectEvent := FD_READ or FD_WRITE or FD_CLOSE or > FD_ACCEPT or FD_CONNECT; > iStatus := WSocket_Synchronized_WSAASyncSelect(FHSocket, Handle, > FMsg_WM_ASYNCSELECT, > FSelectEvent); > > -- > Arno Garrels [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > > > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be