RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseWebModuleFactory.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 TBaseWebModuleFactory, PreventDestruction changes the CacheMode property to caCache. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!