Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Graeme Geldenhuys
Hello Patrick, On 2015-09-30 at 17:56, Patrick Chevalley wrote: > My suggestion to try without heaptrc is only to check if this is the > reason for "slow shutting down". In this case the problem is solved > because a release build without this option will not be affected. Run your program

Re: [Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Koenraad Lelong
Op 30-09-15 om 19:06 schreef Mark Morgan Lloyd: Koenraad Lelong wrote: Op 30-09-15 om 15:43 schreef Martin Schreiber: This is wrong, you need a eabihf compiler, either a patched FPC 2.6.4 or better FPC 3.0.1 from here: http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ Martin

Re: [Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Schindler Karl-Michael
Hi > Am 30.09.2015 um 19:31 schrieb lazarus-requ...@lists.lazarus.freepascal.org: > > Date: Wed, 30 Sep 2015 16:37:38 +0200 > From: Michael Ring > Subject: Re: [Lazarus] Build of Lazarus fails on Mac with STABS error > (perhaps because of MacOSX 10.11??) > To:

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Michael Van Canneyt
On Wed, 30 Sep 2015, Susie Nicol wrote: Hi I have an application with a main form, and several others whuich are only ever used in modal form. The application is slow to terminate, and I cannot see why. The shutdown procedure, simplified a little looks like this: (datamodified a global

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Susie Nicol
On Wed, Sep 30, 2015 at 8:28 PM, Gordon Cooper wrote: > > >> On Wed, 30 Sep 2015, Susie Nicol wrote: >> >> Hi >>> >>> I have an application with a main form, and several others whuich are >>> only >>> ever used in modal form. >>> >>> The application is slow to terminate,

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Susie Nicol
On Wed, Sep 30, 2015 at 7:50 PM, Michael Van Canneyt wrote: > > > On Wed, 30 Sep 2015, Susie Nicol wrote: > > Hi >> >> I have an application with a main form, and several others whuich are only >> ever used in modal form. >> >> The application is slow to terminate, and I

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Gordon Cooper
On Wed, 30 Sep 2015, Susie Nicol wrote: Hi I have an application with a main form, and several others whuich are only ever used in modal form. The application is slow to terminate, and I cannot see why. The shutdown procedure, simplified a little looks like this: (datamodified a

Re: [Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Sven Barth
Am 30.09.2015 16:37 schrieb "Michael Ring" : > Is there a way to pass -gw with the help of lazbuild? I checked, but did not find anything obious. I don't know either, that is something the Lazarus devs will need to answer. > Do you know if Stabs for Mac is only removed on

Re: [Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Sven Barth
Am 30.09.2015 20:59 schrieb "Schindler Karl-Michael" < karl-michael.schind...@web.de>: > So, it does not require fpc 3.0 or even svn-trunk. Yes, it does not /require/ 3.0 or trunk, but trunk (and also 3.0) will have the problem solved by only supporting dwarf for Mac OS X, thus -gl will (should?)

[Lazarus] samevalue function issue

2015-09-30 Thread Andrea Mauri
Dear all, I am using samevalue function provided with fpc (math unit). I am using samevalue instead of = in order to avoid problems related to precision. If I compare two values: a:= 5.1005; b:= 5.1; if I use = operator I get that the two numbers are different. Using samevalue

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Graeme Geldenhuys
Hello Patrick, On 2015-09-30 at 11:32, Patrick Chevalley wrote: > Resolve this errors and then try without heaptrc, it is expected that > memory analysis take at lot of time when the program exit. TIP: Also develop your programs with -gh -gl (memory leak detection) enabled, and show console

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Patrick Chevalley
> Very few overall, and I thought they were safely freed. But heaprtc shows 66 > unfreed memory blocks, so that is something I shall check tomorrow (it's > late in NZ)   Resolve this errors and then try without heaptrc, it is expected that memory analysis take at lot of time when the

Re: [Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Sven Barth
Am 30.09.2015 14:57 schrieb "Koenraad Lelong" : > What am I missing ? > First compiled with "make all bigide", the tried with "make all OPT=-dFPC_ARMHF", both have the same problem. In addition to Martin's answer: the -dFPC_ARMHF option is only needed for building the

[Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Michael Ring
Two or three weeks ago I switched my main computer to OSX 10.11, now I tried to re-compile Lazarus but compilation failed. I compile Lazarus quite regulary, so my guess is that this is perhaps related to OSX 10.11 as this problem is new to me and I have not seen others talking about an error

Re: [Lazarus] samevalue function issue

2015-09-30 Thread Virgo Pärna
On Wed, 30 Sep 2015 13:06:56 +0200, Andrea Mauri wrote: > Dear all, > > I am using samevalue function provided with fpc (math unit). > I am using samevalue instead of = in order to avoid problems related to > precision. > Why are you not using your own

[Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Koenraad Lelong
Hi, I'm trying to compile lazarus on an arm-linux system (odroid C1, but also on RPi model 2). It works until this : ... make --assume-new=svn2revisioninc.pas svn2revisioninc make[2]: Entering directory `/home/odroid/Downloads/source/tools' Makefile:2332: warning: overriding commands for

Re: [Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Martin Schreiber
On Wednesday 30 September 2015 14:56:54 Koenraad Lelong wrote: > Hi, > > I'm trying to compile lazarus on an arm-linux system (odroid C1, but > also on RPi model 2). It works until this : > > ... > make --assume-new=svn2revisioninc.pas svn2revisioninc > make[2]: Entering directory

Re: [Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Sven Barth
Am 30.09.2015 15:22 schrieb "Michael Ring" : > grep "\-g" /usr/local/share/lazarus/components/debuggerintf/Makefile > > override COMPILER_OPTIONS+=-MObjFPC -Scghi -O1 -g -gl -l -vw- -vh- -venibq -vm4046 > > > > Any ideas how to solve this? > You should try to pass

Re: [Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Michael Ring
Thank you both for the information, I tried Michael's workarround, it did not work for me. What worked in the end was using latest 3.0.1 compiler with lazbuild. Michael Am 30.09.15 um 22:41 schrieb Sven Barth: Am 30.09.2015 20:59 schrieb "Schindler Karl-Michael"

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Gordon Findlay
Thanks all. Once I tracked down the two components that had not been freed, the hanging stopped. Some create tips in this thread. Thansk for all of them. On Thu, Oct 1, 2015 at 6:31 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > Hello Patrick, > > On 2015-09-30 at 17:56,

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Susie Nicol
Sorry all: that last reply was from me (the OP). I was on my friend's machine, and he is also on the list. Confusion is universal. Susie On Thu, Oct 1, 2015 at 12:29 PM, Gordon Findlay wrote: > Thanks all. > > Once I tracked down the two components that had not been

Re: [Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Martin Schreiber
On Wednesday 30 September 2015 18:46:11 Koenraad Lelong wrote: > Op 30-09-15 om 15:43 schreef Martin Schreiber: > > This is wrong, you need a eabihf compiler, either a patched FPC 2.6.4 or > > better FPC 3.0.1 from here: > > http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ > > > >

Re: [Lazarus] Build of Lazarus fails on Mac with STABS error (perhaps because of MacOSX 10.11??)

2015-09-30 Thread Michael Ring
I am not sure if I understand correctly what you mean. Is there a way to pass -gw with the help of lazbuild? I checked, but did not find anything obious. The only other option would be to fix all Makefiles with a sed script (there is quite a number of -g in the Makefiles) this works of

Re: [Lazarus] about the command writeln()

2015-09-30 Thread Michael Van Canneyt
On Wed, 30 Sep 2015, Héctor Fiandor wrote: Dear Michael: You have mentioned the command writeln('something') before and after the Application.Terminate, y an email and I want to know about it. Can you send me where I can read for that? writeln is one of the basic commands in Pascal:

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Héctor Fiandor
Hi, I am using windows32 and I want to hnow something about the Heaptrc for windows. Can you send me where I can read about? Thanks in advance, Ing. Héctor Fiandor hfian...@ceniai.inf.cu -- ___ Lazarus mailing list

[Lazarus] about the command writeln()

2015-09-30 Thread Héctor Fiandor
Dear Michael: You have mentioned the command writeln('something') before and after the Application.Terminate, y an email and I want to know about it. Can you send me where I can read for that? Thanks in advance Ing. Héctor Fiandor hfian...@ceniai.inf.cu --

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Graeme Geldenhuys
Hello Héctor, On 2015-09-30 at 10:38, Héctor Fiandor wrote: > Can you send me where I can read about? http://www.freepascal.org/docs-html/3.0.0/rtl/heaptrc/index.html http://www.freepascal.org/docs-html/rtl/heaptrc/usage.html Regards, - Graeme - fpGUI Toolkit - a cross-platform GUI

Re: [Lazarus] Application slow shutting down

2015-09-30 Thread Patrick Chevalley
Hi Graeme, > TIP: > Also develop your programs with -gh -gl (memory leak detection) I agree and always use heaptrc for my development projects. My suggestion to try without heaptrc is only to check if this is the reason for "slow shutting down". In this case the

Re: [Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Koenraad Lelong
Op 30-09-15 om 15:43 schreef Martin Schreiber: This is wrong, you need a eabihf compiler, either a patched FPC 2.6.4 or better FPC 3.0.1 from here: http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ Martin Thanks, Although the link points to a crosscompiler, I managed to compile

Re: [Lazarus] Compiling lazarus on arm-linux

2015-09-30 Thread Mark Morgan Lloyd
Koenraad Lelong wrote: Op 30-09-15 om 15:43 schreef Martin Schreiber: This is wrong, you need a eabihf compiler, either a patched FPC 2.6.4 or better FPC 3.0.1 from here: http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/ Martin Thanks, Although the link points to a