Vote UpVote

How to properly cleanup/shutdown a Delphi ISAPI (which uses Threads) | Mathias Pannier programmiert

The Wiert Corner – For my link archive: If you use Threads or global Objects (which are created in the initialization section for example) You have to cleanup/shutdown them in the OnTerminate event of the ISAPI Application. If You destroy/shutdown them in the finalization section in a unit it could end up in a hanging application pool in IIS on shutdown/reuse and some windows event log entries. //added procedure DoTerminate; begin   //free global objects and wait/terminate threads here end; exports   GetExtensionVersion,   HttpExtensionProc,   TerminateExtension; begin   ReportMemoryLeaksOnShutdown := true; ...
Favorite? Off-Topic? jpluimers @ 2019-10-03 19:04


Visits: 130
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)