>One weird thing I noticed is that the largest chunk available on a 1 meg 3.5
>device with b&w screen is only about 10K, whereas the color device is 35K!!
>This was causing the problem. Anyone know why this is? (David??)
The size of the dynamic heap, as of 3.5, is determined at boot time based
on the total amount of memory of the device it is running on. So don't
rely on the OS version number, but rather just look at MemHeapSize and such.
And of course for some purposes, your main concern may be the amount of
contiguous free memory, not the total free. But in all cases, don't ever
use every scrap of free memory, because then you'd prevent the possibility
of someone beaming you something (or using Bluetooth, or letting the user
do a "Find", or bring up the Contrast dialog, or any of the other things
that may be in the system or in addons that might suddenly need memory.)
A frequently asked question, in this context, is "then how much should I
leave free"? There's no good answer, except "as much as possible". It
depends on what the other thing is trying to do. The more the better!
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/