At 5:27 AM +0100 26-01-00, Chris Antos wrote:
>hm.  there still would need to be a way to override and forcibly delete an
>app without notifying it.  or how would you delete an app that has a bug in
>its cleanup code such that it crashes when you try to delete it?

We've looked at doing this using the new NotifyMgr stuff.  We haven't
gotten it in yet because of some problems that occur when it's a background
task (HotSync) that deletes an app.  We'll keep working on it.

Our solution to the apps that crash when they're told to clean up problem
is to change the type of the database before sending the notification.
We'd make the DB a 'temp' DB or something like that, then send the
notification.  If the app crashed, the user would reset and during the heap
cleanup we do on reset we'd automatically delete any 'temp' databases
(without notification.)

So, the worst thing that could happen is the user would have to reset.

You'll probably say that a clever or malicious app could prevent itself
from being deleted by changing the type back when it got the notification.
That's true.  But, there's nothing today to stop a clever or malicious app
from preventing itself from being deleted.  (It could patch
DmDeleteDatabase, for example.) ...so it's not a new problem, and so we
don't need to solve it.

There would, of course, be a corresponding 'you've just been installed'
notification.  This duplicates an existing launch code (more or less), but
we figured it was worth while to make the more explicit and more consistent
one as well.

...maybe in OS 3.6, or 4.0, or whatever.  :-)

                                --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html.

Reply via email to