Mark Lobanov 1 Posted November 15, 2022 Hello I don't know, why finalization code from OverbyteIcsLIBEAY unit called earlier than TSslBaseComponent.FinalizeSsl and where are many exceptions occur in FinalizeSsl when my windows service stops ? What could be the reasons for this case? ICS 8.70, Delphi Tokyo Share this post Link to post
Angus Robertson 574 Posted November 15, 2022 Can you reproduce this problem in any of the ICS sample applications? Never seen it before. Generally, ICS handles loading and unloading OpenSSL itself, some application use LoadSsl to load it early to check for errors or version, but it's not necessary. Angus Share this post Link to post
FPiette 383 Posted November 15, 2022 Are you sure all communications are done when you stop your service? Remember ICS component are asynchronous and work in the background. Share this post Link to post
Mark Lobanov 1 Posted November 15, 2022 I think not all communications can be completed when the server stops. In this case these communications should be terminated and the service should be stopped without exceptions The last error is Runtime error 216 Share this post Link to post
FPiette 383 Posted November 15, 2022 31 minutes ago, Mark Lobanov said: I think not all communications can be completed when the server stops. In this case these communications should be terminated and the service should be stopped without exceptions The last error is Runtime error 216 You have to manage that yourself. Abort all communications when you detect the stop request and handle any error/exception before existing. Share this post Link to post