Hi All,
I have encountered an intersting problem using threads.
Every time I Run a thread using the foloowing code:
IndexThread:=TReindex.Create(True); //create it suspended
IndexThread.Priority:=tpNormal;
IndexThread.Resume;//start it running
It uses up about 100k of memory. However when I terminate the thread
the memory is not released (at least not according to the NT task
manager).
I have set the threads FreeOnTerminate property to true and called the
method
IndexThread.Terminate
in a message handler. (The thread posts a message when it gets to the
end of its execute procedure).
Within the threads execute procedure I am creating several TTables using
the following code:
tbl1:=TTable.Create(nil); // Create table
then freeing them at the end with
tbl1.Free;
but still the memory is leaking.
Any Ideas.
Thanks
Nigel.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz