AKAIK for an application, the resource pref 0 contains 10 bytes (see view =>
databases on a simulator):
- bytes 0 and 1 : priority, must be 31 (ie 0x00 0x1e)
- bytes 2 to 5 : min stack size (ex. 4 KB = 0x00 0x00 0x10 0x00)
- bytes 6 to 9 : min heap size (ex. 8 KB = 0x00 0x00 0x20 0x00)
I suppose it's not a good idea to play too much with these values ;)
In a PILRC resource file, it looks like:
// SYSAPPLICATIONPREFERENCES ID 0 PRIORITY 31 STACKSIZE 4096 MINHEAPSPACE
8192
HEX "pref" ID 0 /*priority*/ 0x00 0x1f /*minstack*/ 0x00 0x00 0x10 0x00
/*minheap*/ 0x00 0x00 0x20 0x00
[EMAIL PROTECTED] wrote:
Could someone point me in the direction of how to change the stack size
for a Palm application? I'm using the Developer Studio (gcc).
You need to generate a 'pref' resource that specifies the stack size.
I don't use PODS so I don't know how it works there, but on CodeWarrior,
you use the Constructor resource editor to specify this resource.
- Logan
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/