Nic,
The Call tbl1.Free does not set tbl1 to nil.
i.e the following code at the end of the execute procedure
tbl1.Free;
if tbl1<>nil then bDestroyed:=False else bdestroyed:=True;
will always have bDestroyed:=False at the end.
Will the Delphi Memory Manager release the memory eventually or will it only do
it if Thew App is shut down (not good for a service).
Calling Free again results in an access violation so I can't do that.
Nigel.
Nic Wise wrote:
> Its only a leak if it goes up by 100K every time you run it - does it?
>
> The Delphi MM has a habit of not releasing blocks of memory when you say
> "free", 'cos it might use it again straight away, so there is no point
> in the built in MM releasing back to windows, then asking for it again.
>
> something like that :) try it twice and see what happens.
>
> > then freeing them at the end with
> >
> > tbl1.Free;
> >
> > but still the memory is leaking.
>
> Aren't you supposed to use .Release? Or is that just visual stuff?
>
> N
> ---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz