RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebModuleList.AutoDestroyModules Method

Frees all Web modules that are flagged as inappropriate for caching between requests.

Pascal
procedure AutoDestroyModules;
C++
__fastcall AutoDestroyModules();

TWebRequestHandler calls AutoDestroyModules when it finishes processing an HTTP request message. This allows the Web module list to free those Web modules that should not be cached for reuse with another request message. 

AutoDestroyModules searches the module factory list for factory objects that have a CacheMode property with the caDestroy flag. For each such factory object, AutoDestroyModules frees the Web module if it exists and removes it from Items property array. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!