Mega Code Archive

 
Categories / Delphi / Examples
 

Memoryleaks

Hi Jan, There is a great piece of code available at the DSP call MemCheck. It's a single pas file and all you have to do is put a single call in the dpr code block to start it up. What is does is it replaces the Delphi memory manager with its own (it's really just an added layer) do that it can watch *all* memory allocations/deallocation/reallocation and give you some interesting info when you program closes. I swear by it, and use it to catch all our memory leaks. HTH, Stephen. [DSP = Delphi Super Page]