Ignore:
Timestamp:
Sep 13, 2010, 11:45:27 AM (14 years ago)
Author:
george
Message:
  • Opraveno: Načítání session.
  • Opraveno: Úniky paměti.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebServer/UHTTPServer.pas

    r33 r34  
    141141    end;
    142142
    143     WriteString('Session id: ' + SessionId);
     143    //WriteString('Session id: ' + SessionId);
    144144    WriteString('<h5>Session variables</h5>');
    145145    for I := 0 to Session.Count - 1 do begin;
     
    201201constructor THTTPServer.Create;
    202202begin
     203  ShowExceptions := False;
    203204  DocumentRoot := './';
    204205  Name := 'THTTPServer';
     
    207208destructor THTTPServer.Destroy;
    208209begin
     210  SessionStorage.Free;
    209211  inherited Destroy;
    210212end;
     
    223225  Stream.Free;
    224226  Headers.Free;
     227  Cookies.Free;
    225228  inherited Destroy;
    226229end;
     
    395398    begin
    396399      for i := 0 to FrameCount - 1 do
    397         Writeln(hstdout^, BackTraceStrFunc(TArrayOfPointer(Frames)[i]));
     400        if I < Length(TArrayOfPointer(Frames)) then
     401          Writeln(hstdout^, BackTraceStrFunc(TArrayOfPointer(Frames)[i]));
    398402    end;
    399403  Writeln(hstdout^,'');
     
    426430    begin
    427431      for i := 0 to FrameCount - 1 do
    428         Writeln(hstderr^, BackTraceStrFunc(TArrayOfPointer(Frames)[i]));
     432        if I < Length(TArrayOfPointer(Frames)) then
     433          Writeln(hstderr^, BackTraceStrFunc(TArrayOfPointer(Frames)[i]));
    429434    end;
    430435  Writeln(hstderr^,'');
Note: See TracChangeset for help on using the changeset viewer.