Create a map file: Project Settings, Linker, 68K Linker, Generate Link Map.
This creates a *.map file in your project folder.  Open the file and look
for the "data" entries.  This shows every variable and its size.  The main
problem with this approach is if you have a pointer that you new() 16 bytes
to during execution, it'll only show the pointer size (4 bytes) and not the
memory allocated to it.

Steve

Stuart A. Malone <[EMAIL PROTECTED]> wrote in message
news:31988@palm-dev-forum...
>
>
> I've got a memory leak in my app, which consists of a single object, 16
> bytes long, that is always allocated at the same memory location.  I'm
> having the devil of a time figuring out where the leak is coming from,
> especially since it only seems to occur under Gremlins.  Generating what
> seems to be the same sequence of events by hand doesn't trigger the bug.
>
> 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?
> That might give me a hint of where to look.
>
> All other suggestions, of course, are welcome.
>
> --Stuart A. Malone
>   Llamagraphics, Inc.
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to