Can't access Application variable in TWebModule...



Where is the Application variable when using (File: New: Web Server
Application) TWebModule app? I see it in the .dpr

-------------------------------------
library PDASRVC1;
uses
WebBroker,
ISAPIApp,
PDAWSRVC in 'PDAWSRVC.pas' {PDAWebService: TPDAWebService};

{$R *.RES}

exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;

begin
Application.Initialize;
Application.CreateForm(TPDAWebService, PDAWebService);
Application.Run;
end.
-------------------------------------

....however, it is not accessible in code (either in design or run-time). I
need to get access to CacheConnections, ActiveCount, etc.

I've tried:
Application.ActiveCount
TWebApplication(MyWebApp).ActiveCount
TISAPIApplication(MyWebApp).ActiveCount
(Application as TWebApplication).ActiveCount

none of these provide access to the TWebModule Application variable...

What am I missing?

thanks,

Blaise


.