On Wed, 2003-02-05 at 12:24, Daniel Garfield Gurdan wrote:
> is there a simple way to store the complete state of an application (i.e.
> stack content, all variables' values, active form, ...) before leaving the
> app to restore everything when the app is restarted?
> Or do I have to save everything manually in a database / the pref database?

Some developers keep all their non-dynamic data in a global structure. 
This makes saving/loading the structure to/from the prefs database a
breeze, as it's a simple matter of storing/loading sizeof(globalvars)
bytes from &globalvars into/from the prefs database.

However, some developers were taught that heavy reliance upon global
variables is bad.  I guess the lessons never took with me.  In any case,
those developers will have to store their state either in a persistent
database, or generate it on the fly each time.

-Ken



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

Reply via email to