[fpc-pascal] Re: Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64
Martin Schreiber
mse00000 at gmail.com
Sat Oct 16 15:46:27 CEST 2010
Jonas Maebe wrote:
>
> He cannot. If freeonterminate=true, then even if you call "inherited
> create(false)" as the very last statement of your constructor, the thread
> may already have finished running and freed itself before
> AfterConstruction is called. The AfterConstruction call will then crash.
>
Will it crash if it is empty as in TObject?
"
procedure TObject.AfterConstruction;
begin
end;
"
It does not in MSEgui tmsethread, up to now at least. ;-)
Martin
More information about the fpc-pascal
mailing list