Ignore:
Timestamp:
Nov 27, 2009, 5:58:07 PM (15 years ago)
Author:
Kevin Toppenberg
Message:

Enhanced 'Last Broker Call' dialog

Location:
cprs/branches/tmg-cprs/CPRS-Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Lib/ORNet.pas

    r453 r612  
    2626function DottedIPStr: string;
    2727procedure CallRPCWhenIdle(CallProc: TORIdleCallProc; Msg: String);
    28 
    2928procedure EnsureBroker;
     29procedure RPCCallsClear;  //kt added
    3030
    3131(*
     
    4646implementation
    4747
    48 uses Winsock;
     48uses
     49  DateUtils, //kt
     50  Winsock;
    4951
    5052const
     
    187189  i, j: Integer;
    188190  x, y: string;
     191  Time1,Time2 : TDateTime; //kt
    189192begin
    190193  RPCLastCall := RPCBrokerV.RemoteProcedure + ' (CallBroker begin)';
     
    205208  if uCurrentContext <> uBaseContext then
    206209    AStringList.Add('Context: ' + uCurrentContext);
     210  Time1 := GetTime; //kt
     211  AStringList.Add('Called at: '+ TimeToStr(Time1));  //kt
    207212  AStringList.Add(' ');
    208213  AStringList.Add('Params ------------------------------------------------------------------');
     
    264269  AStringList.Add('Results -----------------------------------------------------------------');
    265270  AStringList.AddStrings(RPCBrokerV.Results);
     271  AStringList.Add(' ');  //kt
     272  Time2 := GetTime; //kt
     273  AStringList.Add('Elapsed Time: ' + IntToStr(Round(MilliSecondSpan(Time2,Time1))) + ' ms');  //kt
    266274  uCallList.Add(AStringList);
    267275  if uShowRPCs then StatusText('');
     
    497505end;
    498506
     507procedure RPCCallsClear;
     508//kt Added entire fuction.
     509begin
     510  while uCallList.Count > 0 do
     511  begin
     512    TStringList(uCallList.Items[0]).Free;
     513    uCallList.Delete(0);
     514  end;
     515end;
     516
    499517initialization
    500518  RPCBrokerV := nil;
    501519  RPCLastCall := 'No RPCs called';
    502520  uCallList := TList.Create;
    503   uMaxCalls := 10;
     521  uMaxCalls := 150; //kt 10
    504522  uShowRPCs := False;
    505523
    506524finalization
     525  { //kt commented out
    507526  while uCallList.Count > 0 do
    508527  begin
     
    510529    uCallList.Delete(0);
    511530  end;
     531  }
     532  RPCCallsClear; //kt added
    512533  uCallList.Free;
    513534
  • cprs/branches/tmg-cprs/CPRS-Lib/ORSystem.pas

    r453 r612  
    130130begin
    131131  //kt Result := '';
    132   Result := Trim(ParamSearch('SPOOF-VER'));  //kt  Returns user-specified version #
     132  Result := Trim(ParamSearch('SPOOF-VER'));  //kt  //kt Added: allows 'SPOOF-VER=x.x.x.x' command-line parameter
    133133  if Result <> '' then exit;  //kt
    134134  ASize:=GetFileVersionInfoSize(PChar(AFileName), AHandle);
  • cprs/branches/tmg-cprs/CPRS-Lib/ORSystem.~pas

    r453 r612  
    130130begin
    131131  //kt Result := '';
    132   Result := ParamSearch('SPOOF-VER');  //kt  Returns user-specified version #
     132  Result := Trim(ParamSearch('SPOOF-VER'));  //kt  Returns user-specified version #
    133133  if Result <> '' then exit;  //kt
    134134  ASize:=GetFileVersionInfoSize(PChar(AFileName), AHandle);
Note: See TracChangeset for help on using the changeset viewer.