Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jul : memory leak

www.cryer.info
Managed Newsgroup Archive

memory leak

Subject:memory leak
Posted by:"Andrey Czertok" (czert..@portalsystemsat.com.br)
Date:Thu, 19 Jul 2007 11:56:14

Hi All,

I need a help.
Only with this code in TCPExecute my program is memory leaking.
Some help?

start with 4500 k grow to 11.000k and crunch.

Thks
Andrey


procedure TForm1.TCP1Execute(AThread: TIdPeerThread);
var s : string;
begin
  s := '';
  s := AThread.Connection.CurrentReadBuffer;

//if checkbox1.Checked then form1.Memo1.lines.add('Dados:'+s);
  //processa(s);
  //ChecaComando(s);

  if memo1.Lines.Count > 500 then memo1.Clear;
end;

Replies:

www.cryer.info
Managed Newsgroup Archive