> From: Stuart A. Malone [mailto:[EMAIL PROTECTED]]
> I've got a memory leak in my app, which consists of a single object
> Is there some way to for me to get CodeWarrior to give me a list of the
> structs and classes I've got declared in my app that are 16 bytes long?
> All other suggestions, of course, are welcome.
Assuming you allocate all heap objects with operator new, you can override
the memory operators (either globally or per class as needed) and include
whatever debug code you want. The easiest would just be a check for size of
16 bytes where you could set a breakpoint. Don't forget to implement
'operator new []' and 'operator delete []' in addition to the non-array
versions.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/