I'm assuming this is a local variable? The Palm OS only gives apps roughly
3.25kb of stack (or less, depending on what else is loaded.)

You've used too much stack. You have two choices
1) make it a global or static (there is between roughly 16-64kb of heap free
for apps)
2) increase the stack size of your app if you're using CodeWarrior -- see
http://oasis.palm.com/devzone/knowledgebasearticle.cfm?article_id=1214


 ==-
John Schettino author of
Palm OS Programming For Dummies, http://schettino.tripod.com


-----Original Message-----
From: Ronnen Belkind [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 22, 1999 8:33 AM
To: [EMAIL PROTECTED]
Subject: Memory Issues




Can some one explain the memory constraints on the Palm to me?

Specifically I am running into the following problem:

When I declare a "unsigned char Array[2048]", my application compiles and
runs
fine.
If I declare a "unsigned char Array[4096], the application compiles, but
crashes
when it gets
to the declaration.

Changing the code model to large does not help.  My code doesn't come
anywhere
near exceeding the 64k single segment limit.

Any Ideas would be greatly appreciate.

Thanks,
Ronnen


Reply via email to