Ooops, in previous mail you should read (sorry)=> >> there are dire warnings that TThread.Create() shouldn't be overridden. >> Should this be in the documentation if it's a significant issue?
> It's the first time I hear it, I've been doing it forever, just like in > the example in the same wiki page. Hum... same for me here... ;-( Do you think it could explain memory leak that i cannot solve even using this ? => constructor TMyThread.Create(CreateSuspended: boolean; const StackSize: SizeUInt); begin inherited Create(CreateSuspended, StackSize); FreeOnTerminate := TRUE ; => (changed) this not working ? ... end; Thanks. Fred ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Use-sleep-in-thread-tp5721119p5721177.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal