On 06/09/2017 05:42 PM, Michael Schnell via Lazarus wrote:
On 09.06.2017 09:38, Steve Gatenby via Lazarus wrote:

I create a thread every second to run a process (TAsyncprocess), then FreeAndNil the process once done.


Would it not be more appropriate to use a thread pool and keep the threads up, waiting for a TEvent telling them what to do ?

-Michael
I have been meaning to do so, and now seems a good time to refactor it all.
I will add this to using TProcess on Mattias's suggestion

Thank you
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to