Re: [fpc-pascal] Could someone explain me which the correct triggering of the BeforeDestruction method?

2016-09-06 Thread silvioprog
On Tue, Sep 6, 2016 at 5:10 PM, silvioprog wrote: > On Tue, Sep 6, 2016 at 5:18 AM, Maciej Izak wrote: > >> >> 2016-09-05 17:56 GMT+02:00 silvioprog : >> >>> FPC triggers 132, Delphi 1342. :-/ >> >> >> Please report on bug tracker. IMO in presented context - definitely bug. >> > > Sweet, I'm goi

Re: [fpc-pascal] Cross platform mobile development

2016-09-06 Thread donald . pedder
Hi Ryan,    Just so happens this is what I've been immersed in the last few months. I have an idea for an app I'm working on - like you I have Pascal experience, but unlike you I have no Apple experience, so I've been trying to find the best way for me to code for Apple as well.    I did make som

[fpc-pascal] Cross platform mobile development

2016-09-06 Thread Ryan Joseph
Coming from the background of a Pascal programmer (on Mac specifically) does anyone have any ideas as to what the best cross platform development environment/language is right now for mobile apps? I’d like to do some learning and maybe start some projects but I’m not sure if there are any that c

Re: [fpc-pascal] Could someone explain me which the correct triggering of the BeforeDestruction method?

2016-09-06 Thread silvioprog
On Tue, Sep 6, 2016 at 5:18 AM, Maciej Izak wrote: > > 2016-09-05 17:56 GMT+02:00 silvioprog : > >> FPC triggers 132, Delphi 1342. :-/ > > > Please report on bug tracker. IMO in presented context - definitely bug. > Sweet, I'm going to do it tonight. :-) -- Silvio Clécio __

Re: [fpc-pascal] generic way of writing Sets or Enum values to a String

2016-09-06 Thread Graeme Geldenhuys
On 2016-09-06 18:07, leledumbo wrote: > Take mine: Fantastic, I'll give it a go tomorrow. Many thanks. I guess there is a use for Generics then. ;-) Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] FPC 3.0 deb packages?

2016-09-06 Thread Tomas Hajny
On Tue, September 6, 2016 10:36, Karoly Balogh (Charlie/SGR) wrote: > On Mon, 5 Sep 2016, Jon Foster wrote: Hi, (now putting my "mailing list member" hat on ;-) ) >> After I banged on it for many hours applying several crude patches it >> finally makes packages again. But all of this leads me t

Re: [fpc-pascal] FPC 3.0 deb packages?

2016-09-06 Thread Tomas Hajny
On Tue, September 6, 2016 10:36, Karoly Balogh (Charlie/SGR) wrote: > On Mon, 5 Sep 2016, Jon Foster wrote: Hello everybody, Please note that the original poster (Jon Foster) is apparently not subscribed to the mailing list (although he has not mentioned this in his post). I suggest that you inc

Re: [fpc-pascal] THashedStringList doesn't honour CaseSensitive?

2016-09-06 Thread Giuliano Colla
Il 02/09/2016 14:20, Michael Van Canneyt ha scritto: On Fri, 2 Sep 2016, Giuliano Colla wrote: In my application I stumbled into a problem with a search in a HashedStringList: IndexOfName doesn't return the proper index if the search string doesn't match the name case, even if CaseSensitive is

Re: [fpc-pascal] How to sent totally custom parameters to the linker ?

2016-09-06 Thread fredvs
>I've had no problem with e.g. >export OPT='-k-t -k--reduce-memory-overheads -k--no-keep-memory' Ha, I will try this one too. Thanks Mark. Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-sent-totally-custom-parameters-to-

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-06 Thread Marc Santhoff
On Di, 2016-09-06 at 10:42 -0700, fredvs wrote: > > No, I didn't. I only compile native programs. > > Huh, it is what I wanted to ask... > > Did you try to compile on a native FreeBSD 32 bit using -XX parameter (smart > link). No, I have no FreeBSD 32 Bit at hand, sorry. Marc

Re: [fpc-pascal] How to sent totally custom parameters to the linker ?

2016-09-06 Thread fredvs
Andrew Haines wrote > On 09/05/2016 07:27 PM, fredvs wrote: >> Hello. >> >> Is it possible to sent new-other parameters to the linker ? >> Without the use of *-k* > > , fpc sent this to the linker: >> >> [5.227] (9017) Using util /usr/bin/ld >> [5.227] Executing "/usr/bin/ld" with command line "

Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-06 Thread fredvs
> No, I didn't. I only compile native programs. Huh, it is what I wanted to ask... Did you try to compile on a native FreeBSD 32 bit using -XX parameter (smart link). Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linking-to-Linu

Re: [fpc-pascal] generic way of writing Sets or Enum values to a String

2016-09-06 Thread Jonas Maebe
Graeme Geldenhuys wrote: > Is there a way to have a single implementation of Enum-to-String system.str() also works for enums in FPC. For sets, you can use a for-in loop that calls str(). If you want to encapsulate it in a function, you'll have to use a generic function probably. Jonas _

Re: [fpc-pascal] generic way of writing Sets or Enum values to a String

2016-09-06 Thread leledumbo
> Is there a way to have a single implementation of Enum-to-String or > Set-to-String (and the reverse), but pass in the type, instead of having > a separate implementation of each Enum or Set types. > > Could RTTI help? Could Generics help? Is there some other language > construct I might hav

[fpc-pascal] generic way of writing Sets or Enum values to a String

2016-09-06 Thread Graeme Geldenhuys
Hi, I use the following code which works fine, and I have many methods like these for all the various Sets and Enum types I used. I would like to reduce my programming effort (such boilerplate code) by reusing maybe a single implementation. Is there a way to have a single implementation of Enum-

Re: [fpc-pascal] GZip - Stream decompress only in memory

2016-09-06 Thread Marcos Douglas
On Tue, Sep 6, 2016 at 7:04 AM, Graeme Geldenhuys wrote: > On 2016-09-05 21:32, Marcos Douglas wrote: >> Ok, now I understand how TBase64DecodingStream works. > > Don't feel alone. I always get my first implementation of using > TBase64Decoding/Encoding wrong. So much so, that I annotated my FCL I

Re: [fpc-pascal] GZip - Stream decompress only in memory

2016-09-06 Thread Marcos Douglas
On Mon, Sep 5, 2016 at 9:07 PM, Graeme Geldenhuys wrote: > See the tiCompressZLib.pas unit included with tiOPF. It supports Stream, > Buffer, String and File compress/decompress functionality using ZLib. I > believe GZip and ZLib use the same algorithms. > > > https://sourceforge.net/p/tiopf/code

Re: [fpc-pascal] Windows console

2016-09-06 Thread Marcos Douglas
On Tue, Sep 6, 2016 at 6:44 AM, Santiago A. wrote: > I have found a solution here: > > http://stackoverflow.com/questions/20134421/can-a-windows-gui-program-written-in-lazarus-create-a-console-and-write-to-it-at > > At least it works for windows > > uses > Windows; > begin > AllocConsole;

Re: [fpc-pascal] How to sent totally custom parameters to the linker ?

2016-09-06 Thread Mark Morgan Lloyd
On 05/09/16 23:30, fredvs wrote: Hello. Is it possible to sent new-other parameters to the linker ? Without the use of *-k*, fpc sent this to the linker: [5.227] (9017) Using util /usr/bin/ld [5.227] Executing "/usr/bin/ld" with command line "-b elf64-x86-64 -m elf_x86_64 --dynamic-linker=/lib

Re: [fpc-pascal] GZip - Stream decompress only in memory

2016-09-06 Thread Graeme Geldenhuys
On 2016-09-05 21:32, Marcos Douglas wrote: > Ok, now I understand how TBase64DecodingStream works. Don't feel alone. I always get my first implementation of using TBase64Decoding/Encoding wrong. So much so, that I annotated my FCL INF documentation with a working code example. :-) Regards, Grae

Re: [fpc-pascal] Windows console

2016-09-06 Thread Santiago A.
El 05/09/2016 a las 16:26, José Mejuto escribió: > El 05/09/2016 a las 15:01, Santiago A. escribió: >> Hello: >> >> I have a little watchdog utility for windows that runs each five >> minutes, like a unix cron ("Tareas programadas" in Spanish, scheduled >> tasks?). It opened a console window for a

Re: [fpc-pascal] FPC 3.0 deb packages?

2016-09-06 Thread Karoly Balogh (Charlie/SGR)
Hi, On Mon, 5 Sep 2016, Jon Foster wrote: > After I banged on it for many hours applying several crude patches it > finally makes packages again. But all of this leads me to believe that > Debian packages for FPC are no longer maintained / supported? If so > what's the story? Maybe my crude hacks

Re: [fpc-pascal] Could someone explain me which the correct triggering of the BeforeDestruction method?

2016-09-06 Thread Maciej Izak
2016-09-05 17:56 GMT+02:00 silvioprog : > FPC triggers 132, Delphi 1342. :-/ Please report on bug tracker. IMO in presented context - definitely bug. -- Best regards, Maciej Izak ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://list