[fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

Michael Van Canneyt michael at freepascal.org
Sat May 5 16:51:19 CEST 2018

On Sat, 5 May 2018, Marcos Douglas B. Santos wrote:

> I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug.
> I would like to see the heaptrc log in the end, as we can do in normal
> desktop applications.
> So, in one route I create an object and don't release it to simulate a memleak.
> I've tried to set heaptrc.SetHeapTraceOutput('log.txt'). The app
> creates the file, but there is no log there.

This is definitely necessary.

> I've tried to execute using F9 IDE and by command-line too.
> I think the problem is that we need to kill the server (Ctrl+C) and,
> because that, no log is created.
> So, how can I see the log?

Create a call that calls Application.Terminate.


More information about the fpc-pascal mailing list