web-servicesdelphiindyremobjects

Close properly a RemObjects Indy Http Server


I have a webservice using RemObjects and a TROIndyHTTPServer using Delphi XE. I don't know how to close manually the application without generate an access violation when the clients are executing webservice operations. I don't know how to abort the threads of the webservice that are executing the operations. If I close the application sometimes the exe remains indefinitely executing and generates an access violation.

Thanks for the help


Solution

  • The Indy HTTP/TCP server (normally) allows clients to complete their current request when the server shuts down (by setting 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.