RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseWebPageModuleFactory.PreventDestruction Method

Prevents the WebSnap application from freeing the Web module instance.

Pascal
procedure PreventDestruction; override;
C++
virtual __fastcall PreventDestruction();

Call PreventDestruction if the WebSnap application should not free the Web module instance when the current HTTP request message has been fully processed. For example, if another Web module contains a reference to the Web module that this factory creates, you may not want to allow the WebSnap application to free the Web module that this factory creates while the other module exists. 

In TBaseWebPageModuleFactory, PreventDestruction changes the CacheMode property to caCache. 

 

CacheMode

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