On 13 December 2011 19:32, Michael Van Canneyt <[email protected]>wrote:

>
>
> On Tue, 13 Dec 2011, Frank Church wrote:
>
>
>>
>> On 13 December 2011 17:10, Marcos Douglas <[email protected]> wrote:
>>      2011/12/13 Frank Church <[email protected]>
>>      >
>>      > How do you get a report of unfreed objects in Lazarus?
>>      >
>>      > I hav read something about heaptrc and valgrind, but don't know if
>> the latter works on Windows.
>>
>> Include heaptrc unit in your program (would be the first unit) or use
>> IDE 'Project'>'Project Options'|'Compiler
>> Options'|'Linking'<Debugging><**Use Heaptrc unit>.
>> After you close your program, a message will be displayed to you.
>>
>>
>>
>> Can the output be logged to a file?
>>
>
> Yes.
>
> In your main file, call SetHeapTraceOutput in heaptrc:
>
> procedure SetHeapTraceOutput(const name : string);
>
> This is a documented feature:
>
> http://www.freepascal.org/**docs-html/rtl/heaptrc/**
> setheaptraceoutput.html<http://www.freepascal.org/docs-html/rtl/heaptrc/setheaptraceoutput.html>
>
> Michael.
>
>
>
Thanks


> --
> ______________________________**_________________
> Lazarus mailing list
> [email protected].**freepascal.org<[email protected]>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to