Re: Can't access Application variable in TWebModule...



Blaise wrote:
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.

This DPR file uses three units. Therefore the Application global variable must be declared in one of those three units. Find the correct one, and then make sure it appears on the "uses" clause of whatever other units need to access that variable.

--
Rob
.