Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-06

Strange error

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hans Mårtensson

When compiling a windows program with FPC version 2.2.4 with the switch -dDEBUG (using the default configuration), after running the program I get the following message:

-----------------------------
Error
Heap dump by heaptrc unit
0 memory blocks allocated: 0/0
0 memory blocks freed: 0/0
0 unfreed memory blocks: 0
True heap size: 65536 (80 used in System startup)
True free heap: 65456
-------------------------------

Is this:
-A joke?
-An error in the error message?
-Indicationg some problem with my program? and if so, how can I find it?

regards
Hans Maartensson

Reply by email

Vincent Snijders
to Hans Mårtensson
Hans Mårtensson wrote 19 lines
When compiling a windows program with FPC version 2.2.4 with the switch -dDEBUG (using the default configuration), after running the program I get the following message: ----------------------------- Error Heap dump by heaptrc unit 0 memory blocks allocated: 0/0 0 memory blocks freed: 0/0 0 unfreed memory blocks: 0 True heap size: 65536 (80 used in System startup) True free heap: 65456 ------------------------------- Is this: -A joke? -An error in the error message? -Indicationg some problem with my program? and if so, how can I find it?

-dDebug includes -gh, the heaptrc heapmanager. It prints these statistics. If you use a custom heapmanager, then the heaptrc heap manager is not used, so no statistics are gathered. Vincent

Reply by email

Hans Mårtensson
to Vincent Snijders
Vincent Snijders wrote 21 lines
Hans Mårtensson schreef: > When compiling a windows program with FPC version 2.2.4 with the > switch -dDEBUG (using the default configuration), after running the > program I get the following message: > > ----------------------------- > Error > Heap dump by heaptrc unit > 0 memory blocks allocated: 0/0 > 0 memory blocks freed: 0/0 > 0 unfreed memory blocks: 0 > True heap size: 65536 (80 used in System startup) > True free heap: 65456 > ------------------------------- -dDebug includes -gh, the heaptrc heapmanager. It prints these statistics. If you use a custom heapmanager, then the heaptrc heap manager is not used, so no statistics are gathered. Vincent

All right, but with former versions of FPC there was no message if all memory was freed.
And because the message is marked "error", I thought that it might indicate some problem.
/Hans M.

Reply by email

Graeme Geldenhuys
to Hans Mårtensson
Hans Mårtensson wrote
All right, but with former versions of FPC there was no message if all memory was freed.

I've been getting the memory usage output for some time already. So that is normal when heaptrc unit is enabled.

And because the message is marked "error", I thought that it might indicate some problem.

That must be some problem in your code I think. I don't receive the "error" line when my applications quits. I use FPC 2.2.5 by the way.

Regards,
- Graeme -

________________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email