Changeset 612 for cprs/branches/tmg-cprs/CPRS-Lib
- Timestamp:
- Nov 27, 2009, 5:58:07 PM (15 years ago)
- Location:
- cprs/branches/tmg-cprs/CPRS-Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Lib/ORNet.pas
r453 r612 26 26 function DottedIPStr: string; 27 27 procedure CallRPCWhenIdle(CallProc: TORIdleCallProc; Msg: String); 28 29 28 procedure EnsureBroker; 29 procedure RPCCallsClear; //kt added 30 30 31 31 (* … … 46 46 implementation 47 47 48 uses Winsock; 48 uses 49 DateUtils, //kt 50 Winsock; 49 51 50 52 const … … 187 189 i, j: Integer; 188 190 x, y: string; 191 Time1,Time2 : TDateTime; //kt 189 192 begin 190 193 RPCLastCall := RPCBrokerV.RemoteProcedure + ' (CallBroker begin)'; … … 205 208 if uCurrentContext <> uBaseContext then 206 209 AStringList.Add('Context: ' + uCurrentContext); 210 Time1 := GetTime; //kt 211 AStringList.Add('Called at: '+ TimeToStr(Time1)); //kt 207 212 AStringList.Add(' '); 208 213 AStringList.Add('Params ------------------------------------------------------------------'); … … 264 269 AStringList.Add('Results -----------------------------------------------------------------'); 265 270 AStringList.AddStrings(RPCBrokerV.Results); 271 AStringList.Add(' '); //kt 272 Time2 := GetTime; //kt 273 AStringList.Add('Elapsed Time: ' + IntToStr(Round(MilliSecondSpan(Time2,Time1))) + ' ms'); //kt 266 274 uCallList.Add(AStringList); 267 275 if uShowRPCs then StatusText(''); … … 497 505 end; 498 506 507 procedure RPCCallsClear; 508 //kt Added entire fuction. 509 begin 510 while uCallList.Count > 0 do 511 begin 512 TStringList(uCallList.Items[0]).Free; 513 uCallList.Delete(0); 514 end; 515 end; 516 499 517 initialization 500 518 RPCBrokerV := nil; 501 519 RPCLastCall := 'No RPCs called'; 502 520 uCallList := TList.Create; 503 uMaxCalls := 1 0;521 uMaxCalls := 150; //kt 10 504 522 uShowRPCs := False; 505 523 506 524 finalization 525 { //kt commented out 507 526 while uCallList.Count > 0 do 508 527 begin … … 510 529 uCallList.Delete(0); 511 530 end; 531 } 532 RPCCallsClear; //kt added 512 533 uCallList.Free; 513 534 -
cprs/branches/tmg-cprs/CPRS-Lib/ORSystem.pas
r453 r612 130 130 begin 131 131 //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 133 133 if Result <> '' then exit; //kt 134 134 ASize:=GetFileVersionInfoSize(PChar(AFileName), AHandle); -
cprs/branches/tmg-cprs/CPRS-Lib/ORSystem.~pas
r453 r612 130 130 begin 131 131 //kt Result := ''; 132 Result := ParamSearch('SPOOF-VER'); //kt Returns user-specified version #132 Result := Trim(ParamSearch('SPOOF-VER')); //kt Returns user-specified version # 133 133 if Result <> '' then exit; //kt 134 134 ASize:=GetFileVersionInfoSize(PChar(AFileName), AHandle);
Note:
See TracChangeset
for help on using the changeset viewer.