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

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

[Lazarus] Application slow shutting down

2015-09-29 Thread Susie Nicol
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 Boolean; savedata another procedure in the same