[DUG] A change in upgrade policy coming from Embarcadero
Jeremy North
jeremy.north at gmail.com
Fri Sep 18 17:41:46 NZST 2009
The full FastMM version can show a detailed list, however the version
included with Delphi by default can show you the classnames and size
of the leak. Just set the ReportMemoryLeaksOnShutdown global variable.
On Fri, Sep 18, 2009 at 3:34 PM, Kyley Harris <Kyley at harrissoftware.com> wrote:
> Actually FastMM also tells you exactly what you did not free, and where..
> so.. no memory leaks.. Its amazing how frequently you can forget a try
> finally.. but.. they all get picked up the moment I run the app.
>
> On Fri, Sep 18, 2009 at 5:33 PM, Kyley Harris <Kyley at harrissoftware.com>
> wrote:
>>
>> Ben Taylor wrote a replacement Mem Manager that does that..
>>
>> On Fri, Sep 18, 2009 at 5:29 PM, John Bird <johnkbird at paradise.net.nz>
>> wrote:
>>>
>>> As far as Garbage collection in Delphi, I have sometimes wondered why
>>> there
>>> isn't something along the lines of a RTTI list of objects that have been
>>> created by the program in code (rather than autocreated by the
>>> Application),
>>> then it would be quite easy to go thru the list and figure out anything
>>> which needs to be freed, and hasn't been yet.
>>>
>>> With that you would have much of the features of a garbage collection, or
>>> at
>>> least an easy way for the programmer to work out what they forgot to free
>>> or
>>> never actually got freed..
>>>
>>> Oh wait there probably is somewhere....anyone know? (You can tell I
>>> don't
>>> create and free objects that much, in part to avoid extra complexity).
>>>
>>> something along the lines of (frantically inventing code - I am already
>>> used to interating thru components on a form)
>>>
>>> comp:TComponent; //parent form
>>>
>>> for compptr := 0 to comp.ComponentCount - 1 do
>>> begin
>>> if (comp.components[compptr].assigned) and
>>> (comp.components[compptr].LastUse < FiveMinsAgo)
>>> then (comp.components[compptr].free)
>>>
>>>
>>> And because its friday...
>>>
>>> "%20 The Final Frontier..."
>>>
>>> John
>>>
>>>
>>> _______________________________________________
>>> NZ Borland Developers Group - Delphi mailing list
>>> Post: delphi at delphi.org.nz
>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi
>>> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
>>> unsubscribe
>>
>>
>>
>> --
>> Kyley Harris
>> Harris Software
>> +64-21-671-821
>
>
>
> --
> Kyley Harris
> Harris Software
> +64-21-671-821
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
> unsubscribe
>
More information about the Delphi
mailing list