Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 30/03/2016 14:45, Alexsander Rosa wrote: How can I get GetAppConfigDir correctly on Windows XP (PT-BR)? The path includes the word "configurações" (settings, in portuguese). dir_config := ExtractFilePath(GetAppConfigDirUTF8(false)); Any hints? Can you reproduce this problem if you creatin

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 01/04/2016 22:03, Bart wrote: So, also on the 1.6 branch we directly call the Windows Wide API (provided you are NOT on a Win9x system). Sorry Bart, you are right. I overlooked "Win32MajorVersion <= 4" after seeing "{$ifndef WinCE}". I went straight to GetAppConfigDirAnsi to discover issu

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Marco van de Voort
On Fri, Apr 01, 2016 at 08:58:14AM +0200, Michael Van Canneyt wrote: > > they've learned to love on Linux. > > I seriously doubt this will have any effect. > > Most (if not all) of their admin tools are GUI based. > That makes scripting them impossibile. Which is the point of scripting. Most of

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Marco van de Voort
On Fri, Apr 01, 2016 at 09:23:23AM +0100, Henry Vermaak wrote: > I've come across ld running out of memory when linking the lazarus > executable on my (very) old ARM laptop. You can try to pass > --no-keep-memory and --reduce-memory-overheads to ld, at the cost of > performance. I can't see how t

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Bart
On 4/1/16, Denis Kozlov wrote: > Yes, Lazarus 1.7 uses SHGetFolderPath directly. Lazarus 1.6 fixes branch > still uses GetWindowsSpecialDir. >From the 1.6 fixes brach, file ($lazarus)/components/lazutils/winlazfileutils.inc This happens in the initialization section when Windows version > WinMe

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 21:09, Bart wrote: > On 4/1/16, Denis Kozlov wrote: > > > This issue also affects Lazarus 1.6 and FPC 3.0+. > > > > GetWindowsSpecialDir in FPC 3.0.0 and trunk has severe encoding and > buffer > > overrun issues. SHGetFolderPath links to SHGetFolderPathW if > > FPC_UNICODE_RTL

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Bart
On 4/1/16, Denis Kozlov wrote: > This issue also affects Lazarus 1.6 and FPC 3.0+. > > GetWindowsSpecialDir in FPC 3.0.0 and trunk has severe encoding and buffer > overrun issues. SHGetFolderPath links to SHGetFolderPathW if > FPC_UNICODE_RTL is defined. But GetWindowsSpecialDir still calls it as

Re: [Lazarus] PDF generator, try 2

2016-04-01 Thread Jesus Reyes A.
On Thu, 31 Mar 2016 18:16:18 -0600, Graeme Geldenhuys wrote: BTW, out of curiosity, in the sample there is code like this: lPt1 := P.Matrix.Transform(15, 120); P.WriteUTF8Text(lPt1.X, lPt1.Y, 'Languages: English: Hello, World!'); lPt1 := P.Matrix.Transform(40, 130); P.WriteUTF8Text(l

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 16:55, Denis Kozlov wrote: > In Lazarus 1.4.4, GetAppConfigDirUTF8 and GetAppConfigFileUTF8 internally > use GetAppConfigDirAnsi and GetAppConfigFileAnsi (unless running on Windows > CE), respectively. These functions call ANSI version of Windows API and > then map the result i

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Anthony Walter
I am running mate as the desktop environment which may account for a greater than normal memory usage than the default Raspbian environment, though it's not too much more. I will say this though, increasing the swap file from the default of 100MB to 1024MB seems to alleviate the problem. -- __

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: wkitt...@windstream.net wrote: ummm... shouldn't the compiling process use as much swap as needed if real memory it too tight (aka not enough)?? Yes, and that's outside the remit of Lazarus etc. the swap size is what attracted my attention because normally swap is t

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 15:02, Alexsander Rosa wrote: > Lazarus 1.4.4 with FPC 2.6.4. > In Lazarus 1.4.4, GetAppConfigDirUTF8 and GetAppConfigFileUTF8 internally use GetAppConfigDirAnsi and GetAppConfigFileAnsi (unless running on Windows CE), respectively. These functions call ANSI version of Window

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Alexsander Rosa
Lazarus 1.4.4 with FPC 2.6.4. It's on a TLabel. 2016-03-30 13:36 GMT-03:00 Bart : > On 3/30/16, Alexsander Rosa wrote: > > Which Lazarus version? > Which Fpc version? > Did you define DisableUtf8RTL in project options? > > Lazarus trunk: > > s := getappconfigdirutf8(false); > e := ExtractFil

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Graeme Geldenhuys
On 2016-04-01 12:44, Santiago A. wrote: > > Me too, but it would a nice plus if you also give me nice UI. I guess then you have best of both worlds - at the expense of the developer that had to implement all that. :) In fact my mail server (SurgeMail) has exactly what you suggest. I can edit tex

Re: [Lazarus] The return of the dreaded "The IDE is still building"

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Dmitry Boyarintsev wrote: On Fri, Apr 1, 2016 at 4:52 AM, Michael Van Canneyt wrote: See attachment. The IDE main window caption does not say 'building', and it is not building. The messages window shows the package compilation is in progress. I typically get this m

Re: [Lazarus] The return of the dreaded "The IDE is still building"

2016-04-01 Thread Dmitry Boyarintsev
On Fri, Apr 1, 2016 at 4:52 AM, Michael Van Canneyt wrote: > > See attachment. > > The IDE main window caption does not say 'building', and it is not > building. > The messages window shows the package compilation is in progress. I typically get this message when trying to run a compilation whil

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Santiago A.
El 01/04/2016 a las 13:19, Graeme Geldenhuys escribió: > Give me good old text configs any time of the time. Easy to edit, easy > to backup. > Me too, but it would a nice plus if you also give me nice UI. Although I had sometimes to edit configuration of virtual hosts with includes etc, I don't

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Schnell
On 04/01/2016 01:23 PM, Sven Barth wrote: "it" meant the GUI, I see. I misunderstood that with "only with Windows Store Apps" you wanted to exclude "normal" Windows services. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.o

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Sven Barth
Am 01.04.2016 13:21 schrieb "Michael Schnell" : > > On 04/01/2016 01:13 PM, Sven Barth wrote: >> >> >> However classical WinAPI can't access it. You can access it only with Windows Store Apps and then only one at a time. Though you can runs these platforms headless as well without problems. >> > Th

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Schnell
On 04/01/2016 01:13 PM, Sven Barth wrote: However classical WinAPI can't access it. You can access it only with Windows Store Apps and then only one at a time. Though you can runs these platforms headless as well without problems. That is not true (and a very common misconception). A colle

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Graeme Geldenhuys
On 2016-04-01 10:22, Santiago A. wrote: > but 90% of times you shouldn't have to mess with > configuration files, each one with its one syntax (that's what many unix > products miss and windows shines) This only seems to be an issue for Windows centric people - for everybody else it has never bee

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Sven Barth
Am 01.04.2016 11:20 schrieb "Henry Vermaak" : > > On Fri, Apr 01, 2016 at 09:12:10AM +, Mark Morgan Lloyd wrote: > > Henry Vermaak wrote: > > >On Fri, Apr 01, 2016 at 12:39:15AM -0400, Anthony Walter wrote: > > >>My question is can someone look into this issue so that building Lazarus in > > >>

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Sven Barth
Am 01.04.2016 09:52 schrieb "Michael Van Canneyt" : > > > > On Fri, 1 Apr 2016, Michael Schnell wrote: > >> On 04/01/2016 08:58 AM, Michael Van Canneyt wrote: >>> >>> >>> Some years ago they announced that the sever could run "without GUI". >> >> >> In fact "Windows IOT" is windows 10 without the G

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Mark Morgan Lloyd
wkitt...@windstream.net wrote: ummm... shouldn't the compiling process use as much swap as needed if real memory it too tight (aka not enough)?? Yes, and that's outside the remit of Lazarus etc. the swap size is what attracted my attention because normally swap is the same or double what ins

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Mark Morgan Lloyd
Henry Vermaak wrote: It's always worked fine for me on things like NSLU-2 provided that the overall memory (i.e. RAM + swap) is at least 512Mb. It will be unfortunate if recent builds of FPC and/or Lazarus have pushed this requirement upwards, but so far I've not seen any problems on a Raspberry

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread wkitty42
On 04/01/2016 03:25 AM, Anthony Walter wrote: Here is what my Pi looks like with a ssh session and 64MB reserved for the GPU. Note the free memory is 854MB: pi@retropie:~ $ free -m total used free sharedbuffers cached Mem: 925571354

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Santiago A.
El 01/04/2016 a las 10:37, Michael Van Canneyt escribió: > I cannot understand that Canonical agreed to cooperate on this. > It's called shooting in your own foot... > Me neither. >> And don't deceive yourself. Scripts are the most powerful solution, but >> a GUI need less knowledge and expertise

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Santiago A. wrote: I agree that is not easy. Windows has created his own set of services, uses a strange jargon and nomenclature for services and stuff that has been there for years in unix world. But that's its strategy: Make unix admins a little more comfortable with win

Re: [Lazarus] Raspberry Pi 3 build issues

2016-04-01 Thread Mark Morgan Lloyd
Florian Klämpfl wrote: Am 25.03.2016 um 11:19 schrieb Mark Morgan Lloyd: Bo Berglund wrote: It should be noted that the default swap file size of Raspbian is only 100MB which combined with a possible GPU memory settings will occasionally cause Lazarus builds to fail mysteriously. I originally

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Henry Vermaak
On Fri, Apr 01, 2016 at 09:12:10AM +, Mark Morgan Lloyd wrote: > Henry Vermaak wrote: > >On Fri, Apr 01, 2016 at 12:39:15AM -0400, Anthony Walter wrote: > >>My question is can someone look into this issue so that building Lazarus in > >>environments where free memory is than 700MB does not resu

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Mark Morgan Lloyd
Henry Vermaak wrote: On Fri, Apr 01, 2016 at 12:39:15AM -0400, Anthony Walter wrote: My question is can someone look into this issue so that building Lazarus in environments where free memory is than 700MB does not result in Lazarus build failures? I've come across ld running out of memory whe

[Lazarus] The return of the dreaded "The IDE is still building"

2016-04-01 Thread Michael Van Canneyt
Hi, See attachment. The IDE main window caption does not say 'building', and it is not building. It happens very seldom these days, but still. Sigh... :( Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.f

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Mattias Gaertner
On Fri, 1 Apr 2016 03:25:47 -0400 Anthony Walter wrote: > Calling the compiler directly works on most any project/program. I am not > sure how to build Lazarus (with my preferred packages) using lazbuild or > fpc. The "make useride" command fails exactly like I described in my > original post. m

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Graeme Geldenhuys
On 2016-04-01 07:58, Michael Van Canneyt wrote: > Most (if not all) of their admin tools are GUI based. > That makes scripting them impossibile. Plus the fact that you can transfer existing configurations to newly built servers to replace the old ones. On Unix/Linux, it is simply a matter of copy

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Santiago A.
El 01/04/2016 a las 8:58, Michael Van Canneyt escribió: > >> They are going after the whole Linux.Unix system. They want Linux >> admins and >> developers to realize that they can have good GUI development and >> server-management >> tools available on Windows and still have all the command line go

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Henry Vermaak
On Fri, Apr 01, 2016 at 12:39:15AM -0400, Anthony Walter wrote: > My question is can someone look into this issue so that building Lazarus in > environments where free memory is than 700MB does not result in Lazarus > build failures? I've come across ld running out of memory when linking the lazar

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Michael Schnell wrote: On 04/01/2016 09:53 AM, Michael Van Canneyt wrote: "Windows IOT" is a misnomer. Windows = GUI. The name kind of gives it away. Of course language-wise you are right, but politically of course M$ needs to stick to the "Windows" name, even if strippin

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Schnell
On 04/01/2016 09:53 AM, Michael Van Canneyt wrote: "Windows IOT" is a misnomer. Windows = GUI. The name kind of gives it away. Of course language-wise you are right, but politically of course M$ needs to stick to the "Windows" name, even if stripping off any sense of that. The full name is "

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Martin Schreiber
On Thursday 31 March 2016 20:30:59 Anthony Walter wrote: > I thought this was newsworthy and of interest to us: > > https://blog.xamarin.com/xamarin-for-all/ A date effect maybe? ;-) Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.o

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Michael Schnell wrote: On 04/01/2016 08:58 AM, Michael Van Canneyt wrote: Some years ago they announced that the sever could run "without GUI". In fact "Windows IOT" is windows 10 without the GUI API (i.e. you can run Aervicesm but you can't run applications). So thi

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Schnell
On 04/01/2016 08:58 AM, Michael Van Canneyt wrote: Some years ago they announced that the sever could run "without GUI". In fact "Windows IOT" is windows 10 without the GUI API (i.e. you can run Aervicesm but you can't run applications). So this is viable/sensible/possible in the end. -Mic

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Schnell
On 03/31/2016 08:30 PM, Anthony Walter wrote: I thought this was newsworthy and of interest to us: Am I wrong feeling that the (IMHO rather viable) CIL (aka".Net") initiative, once launched by Microsoft is declining due to the ubiquitous rise of Java ? In fact Microsoft took Silverlight to g

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Anthony Walter
Calling the compiler directly works on most any project/program. I am not sure how to build Lazarus (with my preferred packages) using lazbuild or fpc. The "make useride" command fails exactly like I described in my original post. As a side note, I am able to have GPU memory set to 128MB or more an