[fpc-devel] heaptrc

Luiz Americo Pereira Camara luizmed at oi.com.br
Thu Nov 19 20:10:29 CET 2009


Graeme Geldenhuys escreveu:
> JoshyFun wrote:
>   
>> (Windows only I think, and I do not know if Lazarus exclusive)
>>
>> Is there any way to add a cancel button to the window that show leaks
>> ?
>>     
>
> It's not specific to Lazarus or Windows. As Vincent said, rather output
> to file using an environment variable. The heaptrc documentation
> explains it all.
>
>   

A better solution would be implement some kind of callback in heaptrc 
that could be hooked by the application to intercept and decide when and 
how to show. This could allow LCL applications to show e.g. a window 
with the leakview control instead of the std message window.

Luiz





More information about the fpc-devel mailing list