Thema: Delphi Keine 100% CPU

Einzelnen Beitrag anzeigen

Rumpi

Registriert seit: 26. Aug 2003
Ort: Berlin
72 Beiträge
 
#5

Re: Keine 100% CPU

  Alt 26. Aug 2003, 21:58
Hi,

Delphi-Quellcode:
var
  H : THandle;
begin
  H := GetCurrentProcess();
  SetPriorityClass(H, IDLE_PRIORITY_CLASS);
  try
    try
      ... // deine Function
    except
    end;
  finally
    SetPriorityClass(H, NORMAL_PRIORITY_CLASS);
  end;
mfg Rumpi
  Mit Zitat antworten Zitat