At 3:44 PM -0700 10/27/99, B. Flaumenhaft wrote:
>I have an application that's fairly large (several segments).

Your app itself should never be copied to the dynamic heap.  It's just
locked down in the storage heap and executed in place, so that's not what's
using the space.

Is it a C++ app?  Do you have a lot of global classes?  That might be it.

FYI: The 50K that seems to be used when your app starts probably isn't all
your app's data.  The OS itself uses a fairly significant part of the 92K
of heap.  (Varies with OS release and hardware.)  You can connect up the
PalmDebugger app and do a 'hd 0' and see some detail about what's using
memory.

You could switch to an app that doesn't use too much memory (prefs?) and
see how much is used there and compare that to your own app.  Depending on
the OS release, you should know that you may need to limit the memory use
for your app to as little as 14K (2.0 and earlier) or 40K (3.0, 3.1, 3.2,
3.3).  OS 3.5 adds a little more heap space, (depending on hardware) but
not all that much.

For more details, see the memory manager whitepapers on the devzone
knowledgebase archives.  (Just search on "Memory Manager" and it'll be near
the top.)

                                        --Bob


Reply via email to