"r zane rutledge" <[EMAIL PROTECTED]> wrote in message
news:55301@palm-dev-forum...
>
> I'm having a memory problem. Probably a stupid one. My program runs
fine
> on most Palms (mostly all emulated, of course), and I don't *think*
its
> size (290K) is the problem. The problem I am having seems to only
happen
> on 2MB OS 3.5 "EZ" devices (Palm IIIx, Vx, etc.)...The software is 3.5
> or higher, and I'm essentially testing it on all the ROMs I can find.
>
> In only those 2048K cases, it runs fine once, and then IF IMMEDIATELY
> RUN AGAIN, it crashes trying to allocate its final bitmap (BmpCreate).
> The error, however, is NOT memErrNotEnoughSpace, but instead
> "sysErrNoFreeResources." If you run any other program (say, MemoPad)
in
> between launches, it allocates and runs fine. If you run it twice in a
> row, whammo.
>From checking the Palm OS 3.5 source code, you will get a
sysErrNoFreeResource error if BmpCreate isn't able to allocate enough
memory. I'm not sure why they used this instead of the more common
memErrNotEnoughSpace, but they mean the same thing in this context.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/