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]
http://www.overbyte.be/eng/overbyte/teamics.html


> 
> TIA
> 
> Veit
-- 
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