Or just create a hidden stub in RAM that registers for reset and searches
for and deletes your program in RAM.

You would have to think about getting rid of the stub when the user
"uninstalls" you app from the card... Maybe use the
sysNotifyDeleteProtectedEvent. Then unprotect yourself and delete the stub
when you get notified. Third party launchers and card managers usually don't
notify apps properly in this case.

Matt

----- Original Message -----
From: "Rob Larson" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 11:03 AM
Subject: Re: running program from removeable media stays in ram?


> When your app is started from a card, there is a sysAppLaunchCmdCardLaunch
> launch code before the normal launch.  You can record that fact in feature
> memory, for use next time the app starts up.
>
> As part of the reset, there is a sysAppLaunchCmdSystemReset launch code
when
> the system restarts.
>
> So the ram copy of the program can know that it is not supposed to be
> running.  Now the problem is how does it delete itself.  Best I can come
up
> with is that you SysUIAppSwitch to a helper application with a launch code
> parameter block specifying the "delete me" request.
>
> Maybe there is some other way for a program to delete itself?
>
> "Mark Lussier" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > I notice, if a PRC is run from removeable storage, and while running, a
> soft
> > reset occurs, that application is left in RAM.  The same is true if the
> > application itself programatically soft resets the Palm.
> >
> > Does anyone have a solution so as the PRC is removed? Particularly in
the
> > case where the program itself does a soft reset.
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>


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

Reply via email to