Max Terentiev wrote: > What is proper way to abort Smtp connection > in case of timeout ? > > SmtpCli.CtrlSocket.Close or CloseDelayed ?
Abort is fine. > I ask because I notice strange problem with OnRequestDone > event: > > Some times after calling SmtpCli->Abort and attempting to > establish new connection I receive OnRequestDone for previous > aborted connection. It's happens rarely and randomly. Do not reconnect directly from an event handler, but post a custom window message and from the message handler set properties as needed and reconnect. You may also set property OnRequestDone or other event handlers to nil/null before the call to Abort. -- Arno Garrels -- 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