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

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

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

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

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

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

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 :=

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 >

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] 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 925571

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

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

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

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

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

[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

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

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

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

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

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

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

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.

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

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

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

2016-04-01 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, vfclists . wrote: On 31 March 2016 at 21:56, Denis Kozlov wrote: On 31/03/2016 21:31, vfclists . wrote: They are going all out against Apple and Redhat. You meant Apple and Google maybe? They target Windows, Mac/iOS and Android. A wide selection

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

2016-04-01 Thread Mattias Gaertner
On Fri, 1 Apr 2016 00:39:15 -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? Does it compile when you directly call the

Re: [Lazarus] PDF generator, try 2

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Ondrej Pokorny wrote: On 31.03.2016 22:58, Michael Van Canneyt wrote: I suspect this can be easily implemented. Synopse pdf is the reason I started fppdf. Synopse is heavily Windows centric, but otherwise quite capable. Yes, correct. I was who implemented exact drawing