|
@@ -164,6 +164,8 @@ Var
|
|
|
|
|
|
Implementation
|
|
Implementation
|
|
|
|
|
|
|
|
+uses CustApp;
|
|
|
|
+
|
|
resourcestring
|
|
resourcestring
|
|
SErrNoModuleNameForRequest = 'Could not determine HTTP module name for request';
|
|
SErrNoModuleNameForRequest = 'Could not determine HTTP module name for request';
|
|
SErrNoModuleForRequest = 'Could not determine HTTP module for request "%s"';
|
|
SErrNoModuleForRequest = 'Could not determine HTTP module for request "%s"';
|
|
@@ -180,12 +182,16 @@ Procedure InitApache;
|
|
|
|
|
|
begin
|
|
begin
|
|
Application:=TCustomApacheApplication.Create(Nil);
|
|
Application:=TCustomApacheApplication.Create(Nil);
|
|
|
|
+ if not assigned(CustomApplication) then
|
|
|
|
+ CustomApplication := Application;
|
|
end;
|
|
end;
|
|
|
|
|
|
Procedure DoneApache;
|
|
Procedure DoneApache;
|
|
|
|
|
|
begin
|
|
begin
|
|
Try
|
|
Try
|
|
|
|
+ if CustomApplication=Application then
|
|
|
|
+ CustomApplication := nil;
|
|
FreeAndNil(Application);
|
|
FreeAndNil(Application);
|
|
except
|
|
except
|
|
if ShowCleanUpErrors then
|
|
if ShowCleanUpErrors then
|