[fpc-pascal] Generic way to pre-maturely exit TCustomApplication without memory leaks

2016-10-12 Thread grouchysmurf
Hi. Is there a way to pre-maturely halt TCustomApplication without causing memory leaks? Say, I have a code, where TH is a Class(TCustomApplication): ph := TH.Create(Nil); ph.Initialize; ph.ProcessOptions; ph.Run; ph.Free; When options are processed, it may happen the program needs

Re: [fpc-pascal] The Next Release

2016-10-12 Thread Graeme Geldenhuys
On 2016-10-12 20:27, code dz wrote: > i hope i can see fpc 4.0 befor dying Well, you have the source code. Simply change the version number constant and rebuild it. ;-) Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] The Next Release

2016-10-12 Thread code dz
slow development but it is the best compiler ever ;) i hope i can see fpc 4.0 befor dying :D 2016-10-11 21:59 UTC+02:00, Sven Barth : > Am 11.10.2016 19:57 schrieb "Tony Whyman" : >> >> What's the timetable for the next release? Can we assume that all of > "trunk" will be in it or will it be mor

Re: [fpc-pascal] Issue 24504

2016-10-12 Thread Bart
On 10/12/16, Jonas Maebe wrote: > No. This is a bug that has been there forever, so there is no need to > risk breaking something else (and hence introducing a regression) right > before a new release. Allright with me. [nitpicking mode] Nevertheless: any code that relied on the wrong behaviour

Re: [fpc-pascal] Class helper method overloading ?

2016-10-12 Thread LacaK
Why not create a descendent class simply ? Yes it is what I have used ;-) I have one instance of variable: {$IFDEF xxx} Query: TRemoteQuery; {$ELSE} Query: TSQLQuery; {$ENDIF} TRemoteQuery has ExecSQL(A,B) as own method. I wanted use TSQLQuery but only difference is missing ExecSQL(A,B) so

Re: [fpc-pascal] Class helper method overloading ?

2016-10-12 Thread Michael Van Canneyt
On Wed, 12 Oct 2016, LacaK wrote: Hi, is there posibility introduce in class helper method with same name like in base class ? For example: TSQLQueryHelper = class helper for TSQLQuery public procedure ExecSQL(const ASQL: string; const Args: array of const); overload; end; procedur

[fpc-pascal] Class helper method overloading ?

2016-10-12 Thread LacaK
Hi, is there posibility introduce in class helper method with same name like in base class ? For example: TSQLQueryHelper = class helper for TSQLQuery public procedure ExecSQL(const ASQL: string; const Args: array of const); overload; end; procedure TSQLQueryHelper.ExecSQL(const ASQL

Re: [fpc-pascal] Issue 24504

2016-10-12 Thread Jonas Maebe
On 12/10/16 10:10, Bart wrote: If accepted it would be nice to include in 3.0.2 release. No. This is a bug that has been there forever, so there is no need to risk breaking something else (and hence introducing a regression) right before a new release. Jonas ___

[fpc-pascal] Issue 24504

2016-10-12 Thread Bart
Hi, I attached a trivial patch for issue #24504: Dos.FSearch wrong result using joker-signs (http://bugs.freepascal.org/view.php?id=24504) in the bugtracker. Can some devel review? If accepted it would be nice to include in 3.0.2 release. Bart ___ fpc

Re: [fpc-pascal] Smart Link definition ?

2016-10-12 Thread fredvs
Hello. OK, after check (adding -s parameter to have ppas.sh script for ld), it appears that -XX fpc parameter sent this option to ld: --gc-sections And this produce, sorry FreeBSD, bad linked 32 bit executable in FreeBSD, that is not possible to run in a 64 multi-arch FreeBSD. So, I maintain th