Do not use OnError event. Use structured exceptiuon handling (that is try/except/finally construct). It's the best way to handle errors.
> Could it be that TWSocket is not waiting long enough for a connection > to be established? I have no clue on how to change that, if it is > possible in the first place. TWSocket doesn't change any winsock default. The time is quite long. I suggest you execute your program step by step within Delphi debugger, including TWSocket code. To start, you can put a breakpoint in TCustomWSocket.Connect and see what is failing. -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <firstname.lastname@example.org> Sent: Friday, July 15, 2005 12:50 PM Subject: Re: [twsocket] No connection with TCP/IP over VPN > Thanks for the replies so far. > > I have sent a "debug" version of my > software to the guy using it (regretfull I can't access the VPN from > here ...) and he just returned me the result, which is not very > helpful. > > When I issue a "CliSocket->Connect()", the state changes from > 8 to 3 and after aprpox. 3 seconds (according to the log-file entries) > back to 8. The only error that occurs is CliSocketError(), but there's > no error code that supplies any information at all (CliSocket- > >LastError appears to be 0 as well). CliSocketSessionConnected() is > never reached. > > As for the Telnet experiment: the controller that is on > the other end of the line only supports TCP/IP; it's not a PC or > similar, just a simple micro that has a stripped down TCP/IP stack for > this particular (limited) communication. I have tested it thoroughly > and it works without a single problem as long as it is used in the LAN. > > Could it be that TWSocket is not waiting long enough for a connection > to be established? I have no clue on how to change that, if it is > possible in the first place. > > Any further suggestions are highly > appreciated. > > Menno > > > > > -- > 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