[Lazarus] AsyncProcess code problem
Steve Gatenby
steveg at nevets.com.au
Fri Jun 9 10:56:26 CEST 2017
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
More information about the Lazarus
mailing list