> I don't know of any 3rd party utilities to do this (either freeware, 
shareware,
> or commercial).  But it shouldn't be too hard to write small tracking
functions
> yourself.  If I were doing this, I'd use the magic of the preprocessor to
> redirect all Memory Manager allocation and de-allocation functions to
different
> functions I'd written. Those different functions would remember the blocks I'd
> allocated, and forget them when I de-allocated them. I would then have a query
> function that would list any block still on the list.

Well it's a bit overkill on the Palm but it should be fine for development:
I use (and praise!) HeapManager, a _free_ superfast debugging memory
allocator from Biit, Inc. HeapManager is available for download for free,
including the source code. The allocator is a bit "hairy" for simple Palm
applications, but it has tremendous debugging options and saved my Mac code
several times already. I probably wouldn't recommend it for any production
application since it's too much code for a small Palm app, though.

I guess that with minimal changes (mainly, OS allocations), HM could be
ported to the PalmOS in a minimal amount of time.

Check it out: http://www.biit.com/

--
Florent Pillet, Code Segment       [EMAIL PROTECTED]

BrainForest, outlines and action items for Palm OS handhelds
   -> Aportis Technologies Corp.     http://www.aportis.com/
PowerGlot, the premier localization tool for Mac OS software
   -> PowerGlot Software           http://www.powerglot.com/
Palm Buddy, MacOS active link companion for PalmOS handhelds
   -> ...and other tools... http://perso.wanadoo.fr/fpillet/

Reply via email to