因为对于从EIdSilentException继承来的服务器,EIdConnClosedGracefully是一个正常的异常。您可以在 “Tools”菜单的“Debugger Options”的“Language Exceptions”选项卡中将EIdSilentException加到忽略的异常的列表中。当加到忽略的异常的列表中后这个异常仍然会在代码中触发 并被处理,但是调试器将不会停止程序的运行。
Is it an error?
关闭警告
Project/Option/ Compiler Tab/Warning ... Warnings: None/All/Selected ,Please Select None OK!!