Once upon a time, Martin Liddle wrote:
In article 4F1A9BDB.20001129032709.FOO-2554.frank@g-n-u.de, Frank Heckenbach frank@g-n-u.de writes
Martin Liddle wrote:
Now that our most urgent deadline has passed we will have a little more time to look at the debugging data we have gathered and to follow Frank's suggestion to upgrade to the latest snapshot of the compiler. Thank you for your interest in our problem.
That's not exactly what I said. I said I could try to add support for this in the RTS if you like, and you'd have to upgrade *then*...
OK. I accept that but you have also previously suggested upgrading to fix the recurrent problem we see with random failure to initialise null sets.
I'm now adding somewhat improved support to trace memory leaks (will be uploaded soon).
Simply using the unit HeapMon should show some report about non-released pointers at the end of the program. The unit also provides a function to generate such a report at an arbitrary point during a program run and to an arbitrary file.
The report contains the caller address (which can be turned to source lines using addr2line) which might help find the leaks.
I suppose this is not currently am important thing to you, but when it will become a problem again (to you or anyone else), this should now help debugging.
Frank