[DUG] memory freeing option
ani chakra
anindya.delphi at gmail.com
Sun Jul 22 17:06:30 NZST 2007
Hi,
Is there any other way to free up memory consumed by a form containing a lot
of components, apart than free or FreeAndNil? I have code piece which is
like on a button click in one form A it calls execute method of another form
B which basically creates an object does its' work and then gets freed up by
using FreeAndNil, within try - finally - end block.
What is baffling me is even after calling free, the memory is not freed. I
have tried using Release but its giving me Access Violations which I guess
due a large number of components placed on the form. I have read the delphi
2005 documentation ( I am using D2005) and it says for a modal form it hides
it when the form is closed. But, in my case the formStyle is set to
fsNormal. Also I am passing Nil as a parameter while creating form B to make
sure I am the one responsible for freeing up the memory.
This is confusing me a lot.
Any pointers please...
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070722/cc0af48f/attachment.html
More information about the Delphi
mailing list