我在写一个服务端应用程序的时候,当然客户端断开连接时,会出现如下异常:Project MyProject.exe raised exception class EIdConnClosedGracefully with message'Connection Closed Gracefully.'.Process stopped.Use Step or Run continue.
请问是什么导致了这个异常的产生?应该怎么处理这个异常?如何做到在客户端断开连接的时候不出现这个异常呢?
请帮忙,谢谢。

解决方案 »

  1.   

    Exception raised when a connection has close gracefully.EIdConnClosedGracefully = class(EIdSilentException)DescriptionThis exception class is raised when a connection has been closed gracefully. Because it descends from EIdSilentException, it behaves like the VCL EAbort exception. We recommend that you set your IDE to ignore those exceptions by clicking Tools|Debugger Options..|Language Exceptions|Add and entering "EIdSilentException".
      

  2.   

    有些是DELPHI调试状态下报的异常,编译运行EXE这类现象可消除.