Ignore:
Timestamp:
Dec 18, 2009, 1:42:22 PM (14 years ago)
Author:
george
Message:
  • Opraveno: Chybné vytváření pojmenovaných objektů TEvent.
  • Opraveno: Chybné přidělování a uvolňování zásobníků vláken a databázových spojení.
  • Opraveno: Chybná inicializace parametrů databázových spojení.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DirectWeb/UTCPServer.pas

    r88 r89  
    101101
    102102constructor TTCPServer.Create;
    103 var
    104   I: Integer;
    105103begin
    106104  ThreadPool := TClientThreadedPool.Create;
    107105  ThreadPool.TotalCount := 10;
     106  ThreadPool.Active := True;
    108107
    109108  Socket := TTCPBlockSocket.Create;
     
    146145  if Assigned(Parent.FOnClientConnect) then
    147146    Parent.FOnClientConnect(Self);
     147
     148  Parent.ThreadPool.Release(Self);
    148149end;
    149150
     
    166167  I: Integer;
    167168begin
    168   if not FActive and Active then begin
    169     Allocate;
     169  if not FActive and AValue then begin
    170170    for I := 0 to TotalCount - 1 do begin
    171171      TThreadedPoolItem(Items[I]).Item := TTCPClientThread.Create;
    172172    end;
    173173  end else
    174   if FActive and not Active then begin
     174  if FActive and not AValue then begin
    175175
    176176  end;
    177   FActive := Active;
     177  FActive := AValue;
    178178end;
    179179
Note: See TracChangeset for help on using the changeset viewer.