Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread geneb
On Wed, 3 Jan 2018, Marco van de Voort wrote: In our previous episode, geneb said: > Many thanks! That's great. The completeness of FPC units and packages is really > astonishing. > Is there a complete list of packages available somewhere? There is some info(1) in the wiki, though many

Re: [fpc-pascal] any existing units/libraries for sorting?

2018-01-03 Thread Dennis Poon
Santiago A. wrote: El 03/01/2018 a las 16:09, Dennis escribió: I have a list of records (each with a few fields). What do you mean with list? A TList? You can use sort method Thanks for the reminder. I forgot about it. Dennis ___ fpc-pascal

Re: [fpc-pascal] any existing units/libraries for sorting?

2018-01-03 Thread Ryan Joseph
Determine the sorting key for each of the fields and use quick sort? If the field you’re sorting by is a name for example then use alphabetic order. Sounds like a generic sorting by comparison problem and doesn’t require any specific library. > On Jan 3, 2018, at 10:09 PM, Dennis

Re: [fpc-pascal] any existing units/libraries for sorting?

2018-01-03 Thread Santiago A.
El 03/01/2018 a las 16:09, Dennis escribió: > I have a list of records (each with a few fields). What do you mean with list? A TList? You can use sort method -- Saludos Santiago A. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] any existing units/libraries for sorting?

2018-01-03 Thread Dennis
I have a list of records (each with a few fields). I want to let users display this list of records in ascending orders of any record field. Is there any existing units/library I can use? Thanks in advance. Dennis ___ fpc-pascal maillist -

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Marco van de Voort
In our previous episode, geneb said: > > > Many thanks! That's great. The completeness of FPC units and packages is > > really > > astonishing. > > > Is there a complete list of packages available somewhere? There is some info(1) in the wiki, though many details are missing, and the status of

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread geneb
On Wed, 3 Jan 2018, Tobias Giesen wrote: Many thanks! That's great. The completeness of FPC units and packages is really astonishing. Is there a complete list of packages available somewhere? tnx. g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com - The only one of its kind.

Re: [fpc-pascal] Possible Memory Leak in TThread.Synchronize

2018-01-03 Thread Sven Barth via fpc-pascal
Am 03.01.2018 12:32 schrieb "Tony Whyman" : function CheckSynchronize(...) and this ends with: else begin { for Queue entries we dispose the entry and raise the exception } Dispose(tmpentry); if Assigned(exceptobj) then raise

Re: [fpc-pascal] Possible Memory Leak in TThread.Synchronize

2018-01-03 Thread Tony Whyman
Thanks, I found the problem - the thread was not being destroyed correctly on completion and this manifested itself in what looked like a weird memory leak. On 03/01/18 11:49, Michael Van Canneyt wrote: On Wed, 3 Jan 2018, Tony Whyman wrote: The line "Dispose(tmpentry);" also disposes

Re: [fpc-pascal] Possible Memory Leak in TThread.Synchronize

2018-01-03 Thread Michael Van Canneyt
On Wed, 3 Jan 2018, Tony Whyman wrote: The line "Dispose(tmpentry);" also disposes of a SynchronizeEvent but, unlike TThread.DoneSynchronizeEvent, there is no RtlEventDestroy. Am I correct in pointing the finger here for the memory leak? I doubt it, since AFAIK the RTL event is a OS

[fpc-pascal] Possible Memory Leak in TThread.Synchronize

2018-01-03 Thread Tony Whyman
I have been investigating a possible memory leak in a multi-threading Lazarus program compiled with 3.0.4 where the stack trace with heaptrc shows: Heap dump by heaptrc unit 7014 memory blocks allocated : 131978472/131992352 7004 memory blocks freed : 114543216/114557096 10 unfreed memory

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Tobias Giesen
Many thanks! That's great. The completeness of FPC units and packages is really astonishing. Cheers, Tobias On Wed, 3 Jan 2018 06:36:32 + Graeme Geldenhuys wrote: > On 2018-01-03 00:12, Tobias Giesen wrote: > > Unfortunately Libc and UnixUtils don't

Re: [fpc-pascal] Get user ID for name on Linux

2018-01-03 Thread Giuliano Colla
Il 03/01/2018 01:12, Tobias Giesen ha scritto: I would like to get the user ID for a Linux user name. You might execute from the application the "/usr/bin/id" command which should exist in any Linux flavour passing the required user name ( if it's