On 25 Jun 2001, at 0:00, Palm Developer Forum digest wrote:
> Subject: lack of dynamic memory
> From: Yoel Lanir <[EMAIL PROTECTED]>
> Date: Sun, 24 Jun 2001 17:51:04 +0200
> X-Message-Number: 8
>
> Hi all,
>
> My application does not have enough memory with devices with RAM size 1M.
>
> I use the MemHeapFreeBytes command in the beggining of my program (just
> after the PilotMain) and I see that before doing anything I have just 18000
> bytes of free place.
>
> can anyone tell me what can consume memory before the program starts, so
> that I start my program with only 18K?
>
--------this is he problem---------------
> I am writing in C++ with the PAF library and CW7, and I almost don't have
--------this is he problem---------------
> any global variables at all.
>
> thanks,
> yoel.
C++ will eat a lot of your data segment. It depends on how much classes do you have
and how much methods do you use, if you are one these C++ gurus who use
methods even for acces of variables, do not be suprised.... You may save some space if
you will not use exceptions and RTTI. Or use plain C if possible , it
will help a lot (tested).
Bit off-topic, but I mustsay that this is main reason why I don't like using C++ (it
is much more complicated and result is always slower and longer IMHO)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/