Re: Pls help me out for memory leakage




"chirgncr" <chirag.ncr@xxxxxxxxx> wrote in message
news:1145940273.536676.253380@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

2.I want the exact line number where the memory is getting leak else
atleast I should know where it is getting leak

What you want is not really possible and illustrates an apparent naivete
about memory allocation and deallocation in programs.

First. You need to identify resources in the program that have the
potential to cause leaks. In order to do this you have to understand how
the compiler allocates resources based on the source it is compiling. A
good introductory guide to this can be found in the Memory Management
chapter of the Object Pascal (Delphi) Reference / Language Guide. Actually,
the whole manual is probably helpful.

Then. You can determine the required lifetime of potential leakers.

Finally. You can check relevant sections of code to insure that potential
leakers are released appropriately.



.