I've been on vacation, so this is a late response:

It's not really considered to be very friendly behavior to leave memory
droppings behind when your app is deleted.  This is why the PalmOS
automatically deleteds DBs and prefs that share the same creator ID as the
app being deleted.

If every app I download, test & dismiss left behind a few bytes here and
there then I would quickly run out of memory (hey, wait a sec ...)

If you want to implement a time limit, try comparing your app's creation
date against that of a data db that it requires.

Remember the rules for camping: leave the area cleaner than when you
arrived.

--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!


Mike Walters wrote in message <40060@palm-dev-forum>...
>
>Duh.  I should've known.  Sorry for the stupid question.  Actually, it
>turned out that the Creator ID passed to PrefSetAppPreferences was
different
>than the one for the app, at least for my other apps.  It was the same ID
>for this particular app.  I guess by (mistakenly) making the two values
>different with my other apps, I made it so the Prefs were not deleted with
>the app.
>
>Thanks for the help,
>
>Mike
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
>Burmeister
>Sent: Saturday, February 17, 2001 10:24 PM
>To: Palm Developer Forum
>Subject: RE: Strange Prefs problem
>
>
>> From: Mike Walters
>>
>> I recently did a major upgrade on one of my apps, and now I notice that
>> deleting the application also deletes the Prefs.  If I change the AppType
>> (Creator ID) that I pass to the two functions above, all works well.
>> Deleting the app leaves the Prefs information.  But for some
>> reason if I use
>> the previous value of the AppType, the Prefs go away when the app is
>> deleted.
>>
>
>That's the way it has always worked for me.  If the creatorID passed into
>PrefSetAppPreferences is the same as the creatorID of your app, when the
app
>is deleted, the prefs db is deleted.  It works the same way for any other
>DBs you create with the same creatorID.
>
>
>--
>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