[fpc-pascal] TEnumerator - After the last element?

2021-10-07 Thread Gabor Boros via fpc-pascal
Hi All, I need to know the current position is after the last element. The attached solution demonstrate what I want. Is an internal solution exists for this task? I not found anything. Gabor uses SysUtils, Generics.Collections; type TR=record i:Integer; end; TLEnumerator=class(sp

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-07 Thread Bo Berglund via fpc-pascal
On Tue, 5 Oct 2021 10:22:44 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: >> My program in Lazarus *is* a "simple program" and it has no GUI components. >> >> I never even looked at the implementation of CheckSynchronize()... >> It was just given in another thread when I was working on

Re: [fpc-pascal] TEnumerator - After the last element?

2021-10-07 Thread Sven Barth via fpc-pascal
Am 07.10.2021 um 16:10 schrieb Gabor Boros via fpc-pascal: Hi All, I need to know the current position is after the last element. The attached solution demonstrate what I want. Is an internal solution exists for this task? I not found anything. MoveNext returns False once the enumerator has

Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-07 Thread Michael Van Canneyt via fpc-pascal
On Thu, 7 Oct 2021, Bo Berglund via fpc-pascal wrote: On Tue, 5 Oct 2021 10:22:44 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: My program in Lazarus *is* a "simple program" and it has no GUI components. I never even looked at the implementation of CheckSynchronize()... It was ju