Re: bug in current devbuild - IdIOHandler.pas - procedure TIdIOHandler.Open;

Giganews Newsgroups
Subject: Re: bug in current devbuild - IdIOHandler.pas - procedure TIdIOHandler.Open;
Posted by:  Steven Forbes (…@not_an_address.com)
Date: Sat, 5 Jun 2004

Hi Ben

Curious - is this for Indy 9, or 10? Thanks -

"Ben Taylor" <to_b…@yahoo.com> wrote in message
news:9E0287BADE9FE240to_b…@yahoo.com...
> should be:
>
> procedure TIdIOHandler.Open;
> begin
>    FOpened := True;
>    FClosedGracefully := False;
>    // Recreate FRecvBuffer
>    FreeAndNil(FRecvBuffer);
>    FRecvBuffer := TIdBuffer.Create;
>    //
>    FreeAndNil(FInputBuffer); // add this line!
>    FInputBuffer := TIdBuffer.Create(BufferRemoveNotify);
> end;
>
> otherwise an instance of TIdBuffer is lost each time .Open is called.
> basically it should be handled the same as the FRecvBuffer a couple of
> lines up..
>
> comments?
>
> thanks,
> ben

Replies

None

In response to

bug in current devbuild - IdIOHandler.pas - procedure TIdIOHandler.Open; posted by Ben Taylor on Sat, 05 Jun 2004