RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestHandler.ActivateWebModules Method

Activates a Web module for the application and returns it.

Pascal
function ActivateWebModules: TWebModuleList;
C++
__fastcall TWebModuleList ActivateWebModules();

ActivateWebModules is called internally when the application receives an HTTP request message. If the InactiveCount property is greater than zero, a cached Web module is reactivated. Otherwise, a new instance of the Web module is created. 

Before ActivateWebModules is called, the CreateForm method must be called to register the data module.

Note: In cross-platform applications, a Web application object contains only a single Web module. Usually, that Web module is a TWebModule object, but it may also be an ordinary data module that contains a TWebDispatcher object. If no Web module is associated with the Web application, ActivateWebModule raises an exception. If the ActiveCount property is already at MaxConnections when ActivateWebModules is called, ActivateWebModules raises an exception.
 

 

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