Re: [fpc-pascal]TObjectList.free

2004-02-15 Thread Dean Zobec
Alle 12:25, domenica 15 febbraio 2004, [EMAIL PROTECTED] ha scritto: > > > I fixed this. The problem was that the behaviour of Borland's TList > > changed > > > - it got (a lot!) slower. In older TList implementations TList.Clear > > didn't > I understand their reasons, but it's not so cool if yo

Re: [fpc-pascal]TObjectList.free

2004-02-15 Thread Michael . VanCanneyt
On Fri, 13 Feb 2004, Charl van Jaarsveldt wrote: > Hi all, > > According to the docs for TObjectList, if it's OwnsObjects property is > set to true, then, if you clear the list, it will automatically call > free for all the objects contained in the list. At least that is how I > understand i

Re: [fpc-pascal]TObjectList.free

2004-02-15 Thread Michael . VanCanneyt
On Sat, 14 Feb 2004, Matt Emson wrote: > > I fixed this. The problem was that the behaviour of Borland's TList > changed > > - it got (a lot!) slower. In older TList implementations TList.Clear > didn't > > do anything except free the memory for the list elements. > > Now it calls Notification f

Re: [fpc-pascal]TObjectList.free

2004-02-14 Thread Matt Emson
> I fixed this. The problem was that the behaviour of Borland's TList changed > - it got (a lot!) slower. In older TList implementations TList.Clear didn't > do anything except free the memory for the list elements. > Now it calls Notification for all elements in the list, which is a time > consumi

Re: [fpc-pascal]TObjectList.free

2004-02-14 Thread Michael . VanCanneyt
On Fri, 13 Feb 2004, Charl van Jaarsveldt wrote: > Hi all, > > According to the docs for TObjectList, if it's OwnsObjects property is > set to true, then, if you clear the list, it will automatically call > free for all the objects contained in the list. At least that is how I > understand i

[fpc-pascal]TObjectList.free

2004-02-14 Thread Charl van Jaarsveldt
Hi all, According to the docs for TObjectList, if it's OwnsObjects property is set to true, then, if you clear the list, it will automatically call free for all the objects contained in the list. At least that is how I understand it. Now, I did a little test program and found that calling TObj