Jeremy Swanson wrote:
This must be the case. I went in to PalmOS Simulator and adjusted the
dynamic heap size up to 2048kb. I am developing game software intended for
OS5 devices. Would it be safe to assume such devices will have that kind of
available heap size?
NO!
Never assume anything. You are better off checking for it and warning
the user if the resources are not available (or telling the user that
the app cannot run) then assuming that the device meets the requirements
and leaving the user with a "Fatal Exception" (you'll either get a plain
fatal exception, bad read at address or NULL pointer if you are lucky).
BTW, many OS5 devices have < 2MB of heap. The Palm Tungsten T and
Tungsten T2 have 512kb and 1MB, respectively, I believe. The more recent
devices have > 2MB, but you still should not assume.
I recommend using off screen windows as little as possible, and keep
them as small as possible. Also, very good memory handling will help
greatly!
Regards,
Donald Kirker
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/