There are various little nooks and crannies in PalmOS that you can use to
save things in.  Most of them just save a UInt32.  I would consider
allocating a chunk of memory to hold all your lists and info and stuff, then
storing the address of that chunk in your particular choice of nook and/or
cranny.  To be considered are (1) a feature (gets flushed on reset, but that
should be ok; but there is only one per creator id / feature number pair, so
may not be flexible enough for you), and (2) a (hidden) gadget you have in
your form (the resource cost is minimal and the UInt32 you give it is
actually hiding within the form's information, hence is dynamic and
associates only with the current form; but if you are re-using the same form
may not work well).

Good Luck!

-bob mckenzie, palmsource@pdx

-----Original Message-----
From: Terry Dennis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 10:17 AM
To: Palm Developer Forum
Subject: Re: PalmSim glitch

The "store allocated chunks in globals" concept certainly has merit.  The
trouble with "globals" is that they are non-reentrant.




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

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

Reply via email to