Yes actually, the app needs the entire 380 Kb in memory at a time.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Lippincott
Sent: Monday, April 19, 2004 6:57 PM
To: Palm Developer Forum
Subject: Re: Allocating memory on a Palm


Do you really have to load the entire 380K at once?  If you leave it in
the PDB you can access the data almost as quickly as if you  loaded into
on contiguous chunk.  I use to think I needed to load my entire data
set, I've since learned you can get away with loading only what you need
when you need it.

----- Original Message ----- 
From: "aparanjape" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 3:40 AM
Subject: Allocating memory on a Palm


>
> Hi:
>
> I want to dynamically allot a memory of around 380 KB PDB file on the 
> Palm device. My application needs to load the file at one time. Maybe 
> the app will need to load more than one such file at a time. Palm OS 
> has a constraint that the allocation unit cannot be more than 64KB 
> i.e. malloc equivalent of Palm can allocate only upto 64KB of memory 
> in one call. And total memory that can be dynamically allocated is 
> around 200KB for a 4MB device. Please correct me if i am wrong.
>
> I am not able to load such a big file into memory due to this problem.

> Is there any way to do this? When my app tries to load the file, it 
> crashes. The device I am using has 16MB of RAM.
>
> Any help would be appreciated.
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to