The Debug Console feature in CWIDE allows me to perform a 'hd' command.
This command dumps all of the chunks in a heap out to the screen. At the
end of each line in this list (right after the flags field) is what appears
to be a tag of some kind that lets you know what type of chunk it is. Where
does this information come from, and how can I define it for my own memory
allocations?
I'm trying to track down a memory leak, and this capability would be
incredibly useful. For example, it told me that several of the chunks were
DmOpenRef structures for the same db, so I knew that I was failing to call
DmCloseDatabase and found the problem in a matter of minutes.
Thanks for your help,
George Madrid
Scrawl, LLC