[fpc-pascal] AddTerminateProc leak?

2015-03-04 Thread silvioprog
Hello, The test: === begin code === program project1; uses heaptrc, SysUtils; function _Finalize: boolean; begin WriteLn('END'); Result := True; end; begin WriteLn('START'); AddTerminateProc(@_Finalize); WriteLn('END 1'); Sleep(1000); DeleteFile('HT.TXT'); SetHea

[fpc-pascal] [PATCH] Add Oid_JSON in pqconnection unit

2015-03-04 Thread silvioprog
Hello, The patch allows to use this ... : select row_to_json(row(1,'foo')) ... instead of this (in this case, the ::text cast avoids the "Missing (compatible) underlying dataset, can not open" error): select row_to_json(row(1,'foo'))::text --- result of both --- { "f1" : 1, "f2" :

[fpc-pascal] Suggestion: TDataSetEnumerator

2015-03-04 Thread silvioprog
Hello, What do you think about a TDataSetEnumerator class in the DB unit? Something like this: === begin code === TDataSetEnumerator = class private FPosition: Integer; FDataSet: TDataSet; function GetCurrent: TDataSet; public constructor Create(ADataSet: TDataSet); fun

[fpc-pascal] [Windows] FileGetAttr reports faHidden on e.g. C:\

2015-03-04 Thread Bart
Hi, Kind of off-topic. While working on Lazarus' TShellTreeView component, it was brought to my attention that FileGetAttr('C:\') returns an attribute that has faHidden in it. This is kind of unexpected. Well actually it reports $16: faDirectory + faHidden + faSysFile on Win7-64 (32-bit fpc) On

Re: [fpc-pascal] Failed compiling SVN source on Raspi 1 B+

2015-03-04 Thread Bee
Yes, we can get both fpc 2.6.4 and trunk (3.1.1) working on both rpi 1 and rpi 2. Installing fpc 2.6.4 is easy and straight forward, but building fpc trunk needs a little bit of tricks and patience. I managed to successfully build fpc trunk on rpi 1, but somehow I still failed to get the debugger w

Re: [fpc-pascal] Failed compiling SVN source on Raspi 1 B+

2015-03-04 Thread John Lee
No, article you referred to in original post is about rpi 2. Can't see mentioned where you got the fpc from either. Let's hope that we can get fpc 2.6.4 and 3.1.1 working on rpi 1 and rpi 2. john On 3 March 2015 at 03:14, Bee wrote: > > If you read the article, it's clearly said that the FPC v.

Re: [fpc-pascal] [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread Lukasz Sokol
On 04/03/15 11:45, Anthony Walter wrote: > Lukasz. I'm not sure where you are talking about. > > I know there's a really big orange button at the top of the screen > with two words in all caps "DOWNLOAD NOW". You're saying you click > that and something starts to download right away or what some >

Re: [fpc-pascal] [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread Anthony Walter
Lukasz. I'm not sure where you are talking about. I know there's a really big orange button at the top of the screen with two words in all caps "DOWNLOAD NOW". You're saying you click that and something starts to download right away or what some colloquially refer to as now? Because if you are, th

Re: [fpc-pascal] [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread Mark Morgan Lloyd
Lukasz Sokol wrote: On 03/03/15 17:47, Anthony Walter wrote: This is a public notice. Get Lazarus has switched from hosting arbitrary revisions to hosting setup programs from nightly builds. http://www.getlazarus.org/setup/ Going forward each night the current svn trunk sources of FPC and Laza

[fpc-pascal] [Cross-post] Re: Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread Lukasz Sokol
On 03/03/15 17:47, Anthony Walter wrote: > This is a public notice. Get Lazarus has switched from hosting > arbitrary revisions to hosting setup programs from nightly builds. > > http://www.getlazarus.org/setup/ > > Going forward each night the current svn trunk sources of FPC and > Lazarus will

Re: [fpc-pascal] Free Pascal and Lazarus Nightly Builds

2015-03-04 Thread LacaK
Thank you Anthony, nightly snapshots are IMO very usefull for easy testing patches. For me often in forum happens, that anybody reports bug, bug was fixed and user was asked to test patched version. User asked how to do it ... and answer was you must use TRUNK version and most of users "ends" at