Can't access Application variable in TWebModule...
- From: "Blaise" <mgathome@xxxxxxxxxxx>
- Date: Wed, 21 Feb 2007 15:42:41 GMT
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
.
- Follow-Ups:
- Re: Can't access Application variable in TWebModule...
- From: Rob Kennedy
- Re: Can't access Application variable in TWebModule...
- Prev by Date: Re: Form changes style when size adjusted
- Next by Date: Re: Form changes style when size adjusted
- Previous by thread: Form changes style when size adjusted
- Next by thread: Re: Can't access Application variable in TWebModule...
- Index(es):