[英]Close properly a RemObjects Indy Http Server
I have a webservice using RemObjects and a TROIndyHTTPServer using Delphi XE. 我有一个使用RemObjects的Web服务和一个使用Delphi XE的TROIndyHTTPServer。 I don't know how to close manually the application without generate an access violation when the clients are executing webservice operations.
当客户端执行Web服务操作时,我不知道如何手动关闭应用程序而不会产生访问冲突。 I don't know how to abort the threads of the webservice that are executing the operations.
我不知道如何中止正在执行操作的Web服务的线程。 If I close the application sometimes the exe remains indefinitely executing and generates an access violation.
如果我关闭该应用程序,则该exe有时会无限期执行并生成访问冲突。
Thanks for the help 谢谢您的帮助
The Indy HTTP/TCP server (normally) allows clients to complete their current request when the server shuts down (by setting Active := False). Indy HTTP / TCP服务器(通常)允许客户端在服务器关闭时完成当前请求(通过设置Active:= False)。
If long-running requests cause this problem, it should be possible to reproduce it and use the debugger to analyze the AV further. 如果长时间运行的请求导致此问题,则应该可以重现它,并使用调试器进一步分析AV。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.