unit Unit1;interfaceuses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, TLHelp32;type
  TForm1 = class(TForm)
    Timer1: TTimer;
    procedure Timer1Timer(Sender: TObject);
  private
    { Private declarations }
    function FindProcess(PName: string): DWord;
  public
    { Public declarations }
  end;var
  Form1: TForm1;implementation{$R *.dfm}function TForm1.FindProcess(PName: string): DWord;
var
  lppe:TProcessEntry32;
  h:THandle;
  found:boolean;
begin
  result:=0;
  h:=CreateToolHelp32Snapshot(TH32CS_SNAPALL,0);
  found:=Process32First(h,lppe);
  while found do
  begin
    if AnsiCompareText(ExtractFileName(lppe.szExeFile),ExtractFileName(PName))=0 then
    begin
      result:=lppe.th32ProcessID;
      break;
    end;
    found:=Process32Next(h,lppe);
  end;
end;procedure TForm1.Timer1Timer(Sender: TObject);
var
  i:integer;
begin
  for i:=0 to 10 do
  if FindProcess('notepad.exe')<>0 then
    Caption:='Found';
end;end.这个程序会不断吃掉内存,请问各位大虾怎么改?