At 5:45 PM +0100 11/02/99, Michael S. Davis wrote:
>Is there a simple test to determine if an app has a memory
>leak?  Details?

1) get the OS 3.5 pre-release.
2) run your app on the 'debug' ROM in the provided Palm OS Emulator.
3) quit

If you have left any chunks allocated in the dynamic heap, the OS will tell
you about it when your app quits.  That will be true on a real device as
well as in Poser, but it only happens on the debug ROMs and not many people
are willing to run debug ROMs on a real device.

Another good technique is to connect your device to PalmDebugger running on
the desktop, and use the 'hd 0' and 'hd 1' commands in the console window
to look at the contents of the dynamic and storage heaps.  You can readily
identify chunks used by your app in the 'hd 0' output by looking at the
'owner' column.

                                --Bob


Reply via email to