Page 1 of 1

PostPosted: Sun Mar 18, 2001 8:24 pm
by vpaulg
My program needs to switch to another app and then come back to where it left off. I understand about atexit() but that's a LOT of trouble. Is there some way to snapshot all the memory or a way to start an app so that when that app ends, you come back to the one I'm writing, where you left off?



V. Paul Greenwood

PostPosted: Mon Mar 19, 2001 12:58 am
by Vilmos

The philosophy of the Palm environment is to have the programs come back to the same state as when you left. That is an excellent principle, yet every program does it through a lot of hard work and determination. Use atexit and save all you can, then load it back up when your program starts. That is how they all do it.

Even in the CodeWarrior bunch, they just save to saved preferences and load it all up at start.

Sorry for the bad news, but you have to do it the hard way so far.


PostPosted: Fri Mar 30, 2001 3:59 am
by vpaulg
Sorry for the late response - this is not good news though. It means that every one of my subroutines must have the ability to start off in any place and I must be able to fall through my code setting up all the variables - man.... I need to think about this....

Thanks for the help!


V. Paul Greenwood