Changeset 69 for trunk/Components/CoolWeb/WebServer/UWebApp.pas
- Timestamp:
- Dec 30, 2011, 6:00:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/CoolWeb/WebServer/UWebApp.pas
r68 r69 27 27 TWebApp = class(TCustomApplication) 28 28 private 29 FOnBeforePageProduce: TOnProduceEvent; 29 30 FOnInitialize: TNotifyEvent; 30 31 FServerType: THTTPServerType; … … 42 43 constructor Create(AOwner: TComponent); override; 43 44 destructor Destroy; override; 45 property OnBeforePageProduce: TOnProduceEvent read FOnBeforePageProduce write FOnBeforePageProduce; 44 46 property OnInitialize: TNotifyEvent read FOnInitialize write FOnInitialize; 45 47 property ServerType: THTTPServerType read FServerType write SetServerType; … … 133 135 //Request.QueryParts[0] := 'uzivatel'; 134 136 //Request.QueryParts[1] := 'prihlaseni'; 137 if Assigned(FOnBeforePageProduce) then 138 FOnBeforePageProduce(HandlerData); 135 139 136 140 if Request.QueryParts.Count > 0 then PageName := Request.QueryParts[0] … … 172 176 hstdout := @stderr; 173 177 Writeln(hstdout^, 'An unhandled exception occurred: ' + E.Message + '<br>'); 174 WriteLn(hstdout^, StringReplace(DumpExceptionCallStack(E), LineEnding, '<br>', [rfReplaceAll]));178 WriteLn(hstdout^, DumpExceptionCallStack(E)); 175 179 end; 176 180 end;
Note:
See TracChangeset
for help on using the changeset viewer.