Veit Zimmermann wrote:
> Hi
> I'm currently testing my usage of TSmtpClient and I get some
> strange behavior: When I unplug my computers network cable while
> a SMTP connection is active it takes about 5 to 10 seconds and
> then a MessageBox-like window appears with the Error Icon but no
> test at all on it. 
> Ignoring the fact that my program is now
> frozen, where does this window come from and how can I handle a
> hard disconnect like this gracefully?

Do you run the application in debugger? That would show you
the line where the exception (if any) was raised.
Usually, if the network cable is plugged off OnSessionClose will
be triggered when the component tries to send or receive something.

Arno Garrels [TeamICS]

> Veit
To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to