OK, so easy to go off chasing shadows and forget where you are really heading ...
Right now, I'm learning how to rebuild compiler/rtl to include debugging so I can find a memory leak on a Mac. Remember that David.
The immediate issue is, even with a newly build compiler/rtl with [DEBUG, -glh] I don't see references to offending lines of code.
Sometimes.Its not a compiler issue, I suspect HeapTrc does not bother to tell you a line number if it thinks you are doing it deliberately. It feels insulted !
For example, I declare a pointer to a record, new(Ptr), create a list of such records and don't Free anything, I get told I have a memory leak but not where.
But if I add that record to the list, I get a sensible line number !
This behaviour is not, in any way, dependent on what compiler/RTL I use ! Thats the shadow I've been chasing.
As my memory leak is a sincere and probably subtle one, when I move back to the Mac (yek) I'll probably get a fully cooperative HeapTrc.
Anyone want to see the 61 line FPC code to demonstrate what I just said, please ask !
David