Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Gordon Cooper
Thank you. G. On 11/26/2015 08:31 PM, Michael Van Canneyt wrote: On Thu, 26 Nov 2015, Vincent Snijders wrote: 2015-11-26 5:29 GMT+01:00 Bee : The 3.0.0 docs is available at http://www.freepascal.org/docs-html/3.0.0/fpctoc.htm The doc can't be open. 404. http://www.freepascal.org/

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Michael Van Canneyt
On Thu, 26 Nov 2015, Vincent Snijders wrote: 2015-11-26 5:29 GMT+01:00 Bee : The 3.0.0 docs is available at http://www.freepascal.org/docs-html/3.0.0/fpctoc.htm The doc can't be open. 404. http://www.freepascal.org/docs-html/3.0.0/fpctoc.html I created a symlink so it will open. Mi

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Vincent Snijders
2015-11-26 5:29 GMT+01:00 Bee : > > > The 3.0.0 docs is available at > > http://www.freepascal.org/docs-html/3.0.0/fpctoc.htm > > The doc can't be open. 404. > http://www.freepascal.org/docs-html/3.0.0/fpctoc.html Vincent -- ___ Lazarus mailing list La

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Gordon Cooper
Same here, nobody home at that address. Gordon. On 11/26/2015 05:29 PM, Bee wrote: > The 3.0.0 docs is available at > http://www.freepascal.org/docs-html/3.0.0/fpctoc.htm The doc can't be open. 404. -- -Bee- -- ___ Lazarus mailing list Lazarus@l

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Bee
> The 3.0.0 docs is available at > http://www.freepascal.org/docs-html/3.0.0/fpctoc.htm The doc can't be open. 404. -- -Bee- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Anthony Walter
Joost, can you please remove the "experimental" tag next to the generic bullet? I haven't seen any issues with them in quite a while. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/laz

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Anthony Walter
wkitty, I just updated the installers at: http://www.getlazarus.org/setup/ It is built from FPC 3.0 now. It installs to your home folder without needing any special rights to install. Linux/Mac users can change the install folder by changing the $BASE variable at the top of the script. Windows

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread wkitty42
On 11/25/2015 05:36 PM, Anthony Walter wrote: Sweeet! For Linux users here is a complete FPC 3.0 release + Lazarus from svn build script: http://cache.getlazarus.org/download/linux/install-3.0.sh without looking... 1. does this install to the system default or does it install to a user's home

Re: [Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Anthony Walter
Sweeet! For Linux users here is a complete FPC 3.0 release + Lazarus from svn build script: http://cache.getlazarus.org/download/linux/install-3.0.sh -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mai

[Lazarus] FPC Pestering Peacock (3.0.0) release

2015-11-25 Thread Joost van der Sluis
Hello, We are happy to announce the release of the Free Pascal Compiler version 3.0.0 "Pestering Peacock". This version includes support for, a.o., several new platforms, codepage-aware strings, and an integrated Pascal source-repository (fppkg). New features are listed at http://wiki.freep

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Graeme Geldenhuys
On 2015-11-25 15:41, Rik van Kekem wrote: > Why are the { and } actually removed? > > As far as I know they can be part of a filename on all OSes (or am I wrong?) In tiOPF (the code I linked too), GUID's are used as an OID (Object ID), and normally stored in a database field of type char(36). The

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Henry Vermaak
On Wed, Nov 25, 2015 at 05:51:41AM -0800, Aradeonas wrote: > Hi, > > I used GetTempFileName in a multi thread system and it causes problems > as you guess already. So the best way in my mind is using GUID and maybe > use it in a loop for checking not existing for extra safety. But I want > to know

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Rik van Kekem
Graeme Geldenhuys wrote: Oops, my mistake. Yes, only { and } is removed in tiOPF code. Why are the { and } actually removed? As far as I know they can be part of a filename on all OSes (or am I wrong?) Grtz, Rik (rvk) -- ___ Lazarus mailing list Laz

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Graeme Geldenhuys
On 2015-11-25 15:27, Aradeonas wrote: >> > if (LValue[1] = '{') and(LValue[cGUIDLength] = '}') thenLValue >> > := Copy(lValue, 2, cGUIDLength - 2); AAssignTo.AsString := LValue; > It seems it doesnt remove "-" . > Oops, my mistake. Yes, only { and } is removed in tiOPF code. Regards,

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Aradeonas
Thanks Graeme,Its like what I do so it seems Im doing OK. I looked at the code and it seems it just remove { and }. > if (LValue[1] = '{') and    (LValue[cGUIDLength] = '}') then    LValue > := Copy(lValue, 2, cGUIDLength - 2);  AAssignTo.AsString := LValue; It seems it doesnt remove "-" . > This

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Rik van Kekem
Rik van Kekem wrote: (I'm not sure if FPC 2.6.4 also some helpers for creating GUIDs) This will work in FPC 2.6.4: var GUID : TGUID; begin if CreateGUID(GUID) = 0 then begin MyFileName := GuiDToString(Guid); end; You could strip the {, } and - if you want. Grtz, Rik (rvk) -- ___

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Rik van Kekem
Aradeonas wrote: > I used GetTempFileName in a multi thread system and it causes problems > as you guess already. I wasn't aware that GetTempFileName isn't threadsafe. (Are you sure your code is correct?) Graeme Geldenhuys wrote: On 2015-11-25 13:51, Aradeonas wrote: So the best way in my mind

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Tony Whyman
This may be an appropriate use for EnterCriticalSection and ExitCriticalSection, although why don't you just use a different "prefix" in the call to GetTempFile for each thread. On 25/11/15 13:51, Aradeonas wrote: Hi, I used GetTempFileName in a multi thread system and it causes problems as y

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Graeme Geldenhuys
On 2015-11-25 14:50, Aradeonas wrote: > Can you point me to where this system > implemented in tiOPF? This function returns a GUID value: http://sourceforge.net/p/tiopf/code/ci/tiopf2/tree/Core/tiUtils.pas#l3837 This is the class in tiOPF that uses GUID's. This class strips out the '{', '-' an

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Aradeonas
Thank you Graeme. Can you point me to where this system implemented in tiOPF? Regards, Ara -- http://www.fastmail.com - The professional email service -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.or

Re: [Lazarus] Safe temp file name

2015-11-25 Thread Graeme Geldenhuys
On 2015-11-25 13:51, Aradeonas wrote: > So the best way in my mind is using GUID and maybe > use it in a loop for checking not existing for extra safety. I've used GUID's as temp file names in a CGI application for about 5 years. The CGI app gets accessed all at the same time in a classroom enviro

Re: [Lazarus] OmniPascal: Visual Studio Code Pascal Extension

2015-11-25 Thread Michael Ring
Dies it support Debugging? Am 25.11.15 um 15:10 schrieb Anthony Walter: In the event you haven't noticed, last week someone posted an announcement of a Free Pascal/Lazarus extension to Visual Studio Code: http://www.omnipascal.com/ I installed it but so far I can't get the code insight workin

[Lazarus] OmniPascal: Visual Studio Code Pascal Extension

2015-11-25 Thread Anthony Walter
In the event you haven't noticed, last week someone posted an announcement of a Free Pascal/Lazarus extension to Visual Studio Code: http://www.omnipascal.com/ I installed it but so far I can't get the code insight working correctly. -- ___ Lazarus mail

[Lazarus] Safe temp file name

2015-11-25 Thread Aradeonas
Hi, I used GetTempFileName in a multi thread system and it causes problems as you guess already. So the best way in my mind is using GUID and maybe use it in a loop for checking not existing for extra safety. But I want to know is there any clean implementation already that I dont know of? Regard